There is no specific function to prepend a string in PHP. But you can use the PHP concatenation operator (.
) to prepened a string with another string.
Let's take a look at the following example to understand how it basically works:
<?php
$a = "Hello";
$b = "World!";
$b = $a . " " . $b;
echo $b; // Outputs: Hello World!
?>
I hope you like this small article.
Hi, My name is Harsukh Makwana. i have been work with many programming language like php, python, javascript, node, react, anguler, etc.. since last 5 year. if you have any issue or want me hire then contact me on [email protected]
Add digital signature certificate in PDF in Laravel
TCPDF is an open-source PHP library and...How to create jQuery Ajax get request
While sending Ajax request, sometimes yo...How to toggle text inside and element on click using jQuery
Use the jQuery text() method You can...Laravel 8 Eloquent whereNotBetween query example
Laravel eloquent method whereNotBetween...How to check if record exists or not in Laravel
In this article, I will show you how you...