Hi again all,
This may be like REALLY stupid, but how on earth does one add things to the beginning of a string in PHP?
I know that $test .= "dedehy"; would add dedehy to the end of the string, but how to get dedehy to the beginning?
Any ideas?
| SitePoint Sponsor |



Hi again all,
This may be like REALLY stupid, but how on earth does one add things to the beginning of a string in PHP?
I know that $test .= "dedehy"; would add dedehy to the end of the string, but how to get dedehy to the beginning?
Any ideas?
PHP Code:$test = "BeginString" . $test;
Cheers.![]()



Doh! It's that easy! I knew that as well.
Thanks for refreshing my memory filmfoto!![]()
We all get coding block, once in awhile.![]()
Bookmarks