What is php ‘addcslashes’ function ? This function :Quote string with slashes in a C style This function support verions : (PHP 4, PHP 5) Funtion syntax: string addcslashes ( string $str , string $charlist ) Happy Programming 🙂
What is php ‘addslashes’ function ? Php ‘addslashes’ function is basically a function which Quotes the string with slashes As we know we cant save Single quote(‘) or Double quote (“) in our database. But with the help of ‘addslashes’ function we can save quoted data to our database as well. This function support PHP […]
What is Php ‘bin2hex’ function ? This is used to convert any binary data to its hexadecimal representation. Php ‘bin2hex’ function support php function version 4 and version 5. Happy Programming 🙂
What is php ‘chr’ function? This php function is used to convert any ascii value to its equivalent character and this function return at character. Php ‘chr’ function support php version 4 and 5.
this function will print ‘F’ because 70=F in ascii.
What is Php ‘count_chars’ function ? Php ‘count_chars’ function is used to get the information about characters used in the string. This function support both php version PHP4, PHP5 This function takes two parameters : 1)String:The first parameter will be the string itself. 2)Mode:If the value of this parameter is set to 0 then this […]
What is Php ‘explode’ function? Php ‘explode’ function is used to split any string, by strings. This function support php version 4 and version 5. Syntax: array explode($Delimiter,$String,$Limit); Explode function return an array of string and this function has three parameters from which first two parameters are required. Lets discuss explode function parameters. 1. $Delimiter(required): […]
What is Php ‘echo’ function? Php ‘echo’ function is used to echo one or more strings. This function support both php version PHP4 and PHP5. Syntax of ‘echo’ function. void echo ( string $a1 [, string $… ] ); ex. echo ‘Hello’; Happy Programming 🙂
Php ‘htmlentities’ function is basically is used to convert all entries to HTML entities. This function supports both php version which are version 4 and 5. Syntax of this function: htmlentities(string,flags) This function takes first parameter as a string and return its html entities as a string. Thanks