PHP Developer's Dictionary- P37

PHP Developer's Dictionary- P37: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 in haystack the function returns false. Only the first character of needle will be used and if needle is a number its corresponding ASCII value is used. echo strrchr abcdefg d123 displays defg str_repeat Syntax string str_repeat string input int multiplier Description The str_repeat function which was added in PHP returns the input string repeated the number of times indicated by multiplier . The multiplier parameter must be greater than 0. echo str_repeat 50 displays 50 asterisks strrev Syntax string strrev string string Description The strrev function returns the string in reverse order. strrpos Syntax int strrpos string haystack char needle Description IT-SC book 180 PHP Developer s Dictionary The strrpos function returns the numeric position of the last occurrence of needle in the string haystack . Note that needle is a character and if passed in as a string only the first character will be used. If needle is not a string it is converted to an integer and applied as the ordinal value of a character. If needle is not found in haystack false is returned. text 123456 echo strpos text 4 displays 3 strspn Syntax int strspn string strl string str2 Description The strspn function which was added in PHP and PHP returns the length of the initial segment of strl which consists of characters found only in str2. strstr Syntax string strstr string haystack string needle Description The strstr function returns a portion of haystack starting from the first occurrence of needle to the end of haystack . If needle is not found false is returned. If needle is not a string it is converted to an integer and applied as the ordinal value of a character. strtok Syntax string strtok string argl string arg2 Description IT-SC book 181 PHP Developer s Dictionary The strtok function is used to tokenize a string into smaller pieces. argi indicates the string to be tokenized and arg2 is the field separator to use for tokenizing the string. If arg2 .

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã 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.