TAILIEUCHUNG - PHP Developer's Dictionary- P34

PHP Developer's Dictionary- P34: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 Description The htmientities function returns a version of string in which any reserved HTML characters have been translated into safe strings. The characters most often encountered are ampersand becomes amp double quote becomes quot less than becomes it greater than becomes gt However htmientities also translates other characters which have an HTML equivalent. Currently the translations are based on the ISO-8859-1 character set. This function is often used to preserve text input by a user that will be displayed in a Web page. htmlspecialchars Syntax string htmlspecialchars string string Description The htmispeciaichars function returns a version of string in which any reserved HTML characters have been translated into safe strings. The characters translated by htmlspecialchars are ampersand becomes amp double quote becomes quot less than becomes it greater than becomes gt implode Syntax string implode string glue array pieces IT-SC book 165 PHP Developer s Dictionary Description The impiode function returns a string containing all the pieces elements in the same order with the glue parameter between each element. array1 array 1 2 3 echo implode array1 results in 1 2 3 join Syntax string join string glue array pieces Description The join function returns a string containing all the pieces elements in the same order with the glue parameter between each element. The join function is an alias to implode and therefore exhibits identical behavior. levenshtein Syntax int levenshtein string strl string str2 Description The ievenshtein function which was added in PHP calculates the Levenshtein distance between the two given strings. Note that the strings must be less than 255 characters in length or a -1 will be returned. The distance is defined as the minimum number of characters you have to replace insert or delete to transform one string to the other. The complexity of the algorithm is o m n which is rather expensive. ltrim Syntax IT-SC

Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.