PHP Developer's Dictionary- P33:PHP is an open source, server-side, HTML-embedded scripting language used to create dynamically generated Web pages. With an easy-to-use syntax and a large, extensible library of modules, PHP brings together the best of Perl, C++, and other languages. | PHP Developer s Dictionary Syntax string chop string str Description The chop function returns the str parameter without any trailing whitespace. Whitespace includes n r t v 0 and a plain space. chr Syntax string chr int ascii Description The chr function returns a one-character string that corresponds to the ASCII code specified by the parameter. echo chr 65 displays A chunk_split Syntax string chunk_split string string int chunklen string end Description The chunk_spiit function which was added in PHP and PHP returns string broken up at every chunklen characters by the string end . The optional parameter chunklen defaults to 76 and end defaults to r n . In other words the default behavior is to take a long string and break it into multiple lines of length 76. This can be useful for converting base64-endcoded output to match RFC 2045 semantics. Base64 encoding is used to preserve binary data when transferring it via electronic mail. convert_cyr_string IT-SC book 160 PHP Developer s Dictionary Syntax string convert_cyr_string string str string from string to Description The convert_cyr_string function which was added in PHP and PHP returns str converted from one Cyrillic character set to another. The from and to parameters are single characters that represent Cyrillic character sets. The str is the character set to which it should be converted. The supported types of Cyrillic character sets are k koi8-r w Windows-1251 i ISO8859-5 a x-cp866 d x-cp866 m x-mac-cyrillic count_chars Syntax mixed count_chars string string mode Description The count_chars function which was added in PHP counts the number of occurrences of each byte value 0-255 in string and returns the information in a format determined by mode . If mode is not specified it defaults to 0. The options for mode include 0 An array with the key representing the byte value and the value representing the frequency of each byte. 1 An array similar to 0 but only non-zero frequency byte .