Variable Every variable starts with "$" eg. Assignment of a string to a variable. $var = "God is a power"; <?php $var = "God is a power"; echo $var; // To print a variable value ?> If you will see ...
Home/string
phpsupport | phpsupportdesk Latest Articles
What is the use of explode in PHP?
pHpSupportIn this post you will learn about the use of explode in PHP. Please check the code given below. This will help. PHP Code Explode breaks the string into pieces(array) $str = “2008/12/10”; // This is a string. I ...
PHP string concatenation
pHpSupportJust use . for concatenating. And you missed out the $personCount increment! while ($personCount < 10) { $result .= $personCount . ‘ people’; $personCount++; } echo $result;