- How To Put Or Add Text Data At Beginning Of String PHP Begining Insert
This Page Contains information about How To Put Or Add Text Data At Beginning Of String PHP Begining Insert By edwino85 in category PHP with 0 Replies. , Last Updated: Sun Jun 14, 2020
Sun Jan 07, 2007
the other way i was trying to find a way to add put data at the beginning of a string (letters or numbers in a sentence), today i found the answer.
There is not PHP function I could find, but the answer is very simple.
Let say for example i have a string with the value of "PHP Hosting At Webune.com" this is how the code would look like:
$string = "PHP Hosting At Webune.com";
and this would be the ouput of the php code:
PHP Hosting At Webune.com
But, lets say i want to add the word "Free" at the begining of the $string.
well to do that, all i have to do is this:
$string.= "PHP Hosting At Webune.com";
The output would look like this:
Free PHP Hosting At Webune.com
Hope this helps. If you want to learn more about PHP, check out our post in this forums, you can learn alot. If you don't have PHP in our site yet, visit our friends at http://www.webune.com to sign up with one of their popular PHP plans.
Any questions, please replay to this post.