mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Missing semicolons
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@177573 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
de36e70579
commit
cb3edbe5f6
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.10 $ -->
|
||||
<!-- $Revision: 1.11 $ -->
|
||||
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.substr">
|
||||
<refnamediv>
|
||||
|
@ -37,14 +37,14 @@ echo substr('abcdef', 1); // bcdef
|
|||
echo substr('abcdef', 1, 3); // bcd
|
||||
echo substr('abcdef', 0, 4); // abcd
|
||||
echo substr('abcdef', 0, 8); // abcdef
|
||||
echo substr('abcdef', -1, 1) // f
|
||||
echo substr('abcdef', -1, 1); // f
|
||||
|
||||
// Accessing single characters in a string
|
||||
// can also be achived using "curly braces"
|
||||
$string = 'abcdef';
|
||||
echo $string{0}; // a
|
||||
echo $string{3}; // d
|
||||
echo $string{strlen($string)-1} // f
|
||||
echo $string{strlen($string)-1}; // f
|
||||
|
||||
?>
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue