PHP print() Function4 Sept 2024 | 1 min read PHP print() function is important function, which is used to output one or more string. Note: The print() function is not actually a function, so there is no required to use parentheses.Syntax:
Example 1Output: Hello PHP Example 2Output: Hello PHP! It is Server Side Scripting Language Example 3Output: Hello PHP! PHP is server side scripting language Example 4Output: JOHN is 35 years old. Next TopicPHP String |
PHP function PHP function is predefined function. It is used to calculate the metaphone key of a string. It is useful to text search and text matching application. It is phonetic algorithm developed by Lawrence Philips. The algorithm produces variable length keys as output. Syntax: string metaphone (...
1 min read
PHP string Function The is in-built PHP string function. It is important function which is used to parse a CSV string into an array. Syntax: str_getcsv(string,separator,enclosure,escape); Parameter Description Required/Optional string Specify the string to parse. Default is comma ( , ). Required. separator Specify the field separator. Default is ". Optional enclosure Specify the field enclosure character....
1 min read
PHP String Function The function is an in-built function of PHP, which converts pre-defined HTML entities to characters. It is opposite to the htmlspecialchars() function. HTML entities decoded back to the character will be like- & converts as & (ampersand) " converts as " (double-quote) ' converts as...
3 min read
PHP String function The is one of the most popular functions of PHP, which is widely used to convert the string into lowercase. It takes a string as a parameter and converts all uppercase English character of that string to lowercase. Other characters such as...
2 min read
PHP string Function PHP string_tags() is predefine string function of PHP. It is used to strip HTML and PHP tags from a string or strips a string from HTML, XML and PHP tags. Note 1: This function is binary safe. It return a string with all NULL...
1 min read
PHP string function PHP string function is predefined function. It is often used to remove whitespace from both sides of a string or other character from the left side of a string. Syntax: ltrim(string,charlist); Parameter Description Required/Optional String Specify the string to check. Required charlist Specify character to remove from the string. "\0" : NULL "\t" :...
1 min read
PHP string function PHP string is predefined function. It is used to calculate the MD5 hash of a string. It uses the RSA DATA security. It returns the hash as a 32 character hexadecimal number. Note: We should not use this function for secure passwords, due...
1 min read
PHP String function The function is an in-built function of PHP. This function is used to find the length of the initial segment of a string placed inside another string. In simple words - the function helps us to find "how many number of...
3 min read
PHP Function PHP convert_cry_string() function is used to convert from one Cyrillic character-set to another. Syntax: string convert_cyr_string ( string $str , string $from , string $to ); Parameter Description Required/Optional String String to convert Required from Specify the Cyrillic character-set to convert. Required to Specify the Cyrillic character-set to convert. Required The supported Cyrillic character-sets are; k - koi8-r w -...
1 min read
PHP string join() Function PHP string join() is predefined function. It is used to return a string from the elements of an array. It is an alias of the implode() function. Syntax: join(separator,array) Parameter Description Required/Optional separator Specify the array element optional array The array to join to a string required Example 1 <?php $arr = array('Hello','PHP','Join','Function'); echo join(" ",$arr)."<br>"; ?> Output: Hello PHP Join...
1 min read
We request you to subscribe our newsletter for upcoming updates.
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India