Wednesday, April 19, 2017

String functions

<?php
$value = "Find string position...";
echo "Position of 'position' in $value is " . strpos($value, 'position') . "<br/>";
echo "Length of $value is " . strlen($value);
?>
Output:
Position of 'position' in Find string position... is 12
Length of Find string position... is 23

No comments:

Post a Comment

here docs

$x = <<<THE_END PHP stands for "PHP: Hypertext Preprocessor". The acronym "PHP" is therefore, usually referre...