|
substrReturn part of a string Description
string substr
( string
$string
, int $start
[, int $length
] )
Returns the portion of Parameters
Return Values
Returns the extracted part of string; or Changelog
Examples
Example #3 Basic substr usage
<?php Example #4 substr casting behaviour
<?php The above example will output: 1) 'pe' 2) '54' 3) 'gr' 4) '1' 5) false 6) false 7) '1200' Errors/Exceptions
Returns
<?php See Also
|