diff --git a/reference/strings/functions/crc32.xml b/reference/strings/functions/crc32.xml index 9fc272eb5d..63fb5af29b 100644 --- a/reference/strings/functions/crc32.xml +++ b/reference/strings/functions/crc32.xml @@ -1,5 +1,5 @@ - + @@ -18,16 +18,14 @@ to validate the integrity of data being transmitted. - - - Because PHP's integer type is signed, and many crc32 checksums will - result in negative integers, you need to use the "%u" formatter of - sprintf or printf to get - the string representation of the unsigned crc32 checksum. - - + Because PHP's integer type is signed, and many crc32 checksums will + result in negative integers, you need to use the "%u" formatter of + sprintf or printf to get + the string representation of the unsigned crc32 checksum. + + This second example shows how to print a converted checksum with the - printf function : + printf function: Displaying a crc32 checksum diff --git a/reference/strings/functions/echo.xml b/reference/strings/functions/echo.xml index 02e73749de..f740dbd8e7 100644 --- a/reference/strings/functions/echo.xml +++ b/reference/strings/functions/echo.xml @@ -1,5 +1,5 @@ - + @@ -70,8 +70,11 @@ echo $some_var ? 'true': 'false'; // changing the statement around - echo also has a shortcut syntax, where you - can immediately follow the opening tag with an equals sign. + echo also has a shortcut syntax, where you can + immediately follow the opening tag with an equals sign. This short syntax + only works with the short_open_tag configuration setting + enabled. foo. - - - This short syntax only works with the - short_open_tag configuration - setting enabled. - - For a short discussion about the differences between print and echo, see this FAQTs diff --git a/reference/strings/functions/explode.xml b/reference/strings/functions/explode.xml index 09b8775775..9226aaaf76 100644 --- a/reference/strings/functions/explode.xml +++ b/reference/strings/functions/explode.xml @@ -1,5 +1,5 @@ - + @@ -30,6 +30,13 @@ in string, then explode will return an array containing string. + + Although implode can, for historical reasons, + accept its parameters in either order, + explode cannot. You must ensure that the + separator argument comes before the + string argument. + The limit parameter was added in PHP @@ -59,15 +66,6 @@ print $pass; // * - - - Although implode can, for historical reasons, - accept its parameters in either order, - explode cannot. You must ensure that the - separator argument comes before the - string argument. - - See also preg_split, diff --git a/reference/strings/functions/number-format.xml b/reference/strings/functions/number-format.xml index 5b5628f6f7..5bb969115b 100644 --- a/reference/strings/functions/number-format.xml +++ b/reference/strings/functions/number-format.xml @@ -1,5 +1,5 @@ - + @@ -42,23 +42,21 @@ the decimals and thousands_sep instead of a comma (",") between every group of thousands. - - - Only the first character of thousands_sep - is used. For example, if you use foo as - thousands_sep on the number - 1000, number_format will - return 1f000. - - - - <function>number_format</function> Example - - For instance, French notation usually use two decimals, - comma (',') as decimal separator, and space (' ') as - thousand separator. This is achieved with this line : - + Only the first character of thousands_sep + is used. For example, if you use foo as + thousands_sep on the number + 1000, number_format will + return 1f000. + + + + <function>number_format</function> Example + + For instance, French notation usually use two decimals, + comma (',') as decimal separator, and space (' ') as + thousand separator. This is achieved with this line : + - + @@ -25,13 +25,13 @@ If needle is not found, returns &false;. - - - It is easy to mistake the return values for "character found at - position 0" and "character not found". Here's how to detect - the difference: - - + + + It is easy to mistake the return values for "character found at + position 0" and "character not found". Here's how to detect + the difference: + + - - - - + + If needle is not a string, it is converted diff --git a/reference/strings/functions/ucwords.xml b/reference/strings/functions/ucwords.xml index a499f2569c..a78ccc3e95 100644 --- a/reference/strings/functions/ucwords.xml +++ b/reference/strings/functions/ucwords.xml @@ -1,5 +1,5 @@ - + @@ -18,6 +18,14 @@ Returns a string with the first character of each word in str capitalized, if that character is alphabetic. + + + The definition of a word is any string of characters + that is immediately after a whitespace (These are: + space, form-feed, newline, carriage return, horizontal tab, + and vertical tab). + + <function>ucwords</function> example @@ -33,14 +41,6 @@ $bar = ucwords(strtolower($bar)); // Hello World! ]]> - - - The definition of a word is any string of characters - that is immediately after a whitespace (These are: - space, form-feed, newline, carriage return, horizontal tab, - and vertical tab). - - See also strtoupper,