Setting up and working with both strings and substrings : substr « String « PHP
- PHP
- String
- substr
Setting up and working with both strings and substrings
<?php
$mystring = "Hello World!";
echo $mystring . "<br />";
echo substr ($mystring,0,5);
?>
Related examples in the same category