Category: PHP

How to use the LIKE Operator in MySQL8?

How to use the LIKE Operator in MySQL8?

The LIKE operator performs pattern matching using an SQL pattern. If the string matches the pattern given, the result is 1(TRUE), otherwise it’s 0(FALSE). This is not necessarily to be...

MySQL8 INSERT() Functions – String Functions

MySQL INSERT() Functions: Syntax INSERT ( string1, startpos, length, newstring );   MySQL INSERT() Functions: Description INSERT() Functions push newstring at specified place up to specified number of characters  into existing...

mysql

MySQL 8 String Functions ( Full List )

MySQL 8 has many built-in functions. This reference contains string functions in MySQL. [table caption=”MySQL 8 String Functions list with examples” width=”100%” colwidth=”10%|90%” colalign=”left|left”] Command, Description ASCII(), This will return...

Php tutorials for beginners with example

Cookies – PHP

What are cookies in PHP? Cookies are small files which are stored on user computers. Every time you visit a site on web browser a cookie file gets embed on...

Php tutorials for beginners with example

vfprintf – PHP String Functions

Syntax : vfprintf ( stream_handle, string_format, argarray ); Description : vfprintf() function writes a formatted string to a stream. Stream specified by stream_handle. Works similar as fprintf() but accepts an array...

Php tutorials for beginners with example

sscanf – PHP String Functions

Syntax : sscanf ( string, string_format, arg1, arg2, arg3… ); Description : The sscanf() function parses input from a string according to a string_format. Output will come according to the string_format....

Php tutorials for beginners with example

soundex – PHP String Functions

Syntax : soundex ( string ); Description : soundex() function calculates the soundex key of str. This soundex function returns a string 4 characters long, starting with a letter. Note: It creates the same key...

Php tutorials for beginners with example

similar_​text – PHP String Functions

Syntax : similar_​text ( string1, string2, percentage); Description : similar_​text() function calculates the similarity between two strings with values and percentage. Note: The levenshtein() function is faster than the similar_text() function. However, the similar_text() function will...

Php tutorials for beginners with example

sha1 – PHP String Functions

Syntax : sha1 ( string, raw_output ); Description : sha1() function calculates the sha1 hash of a string. Parameter : [table caption=”” width=”100%” colwidth=”15%|15%|15%|55%” colalign=”left|lef|lef|left”] Name, Required /Optional, Value Type, Description string...

Php tutorials for beginners with example

sha1_​file – PHP String Functions

Syntax : sha1_file ( filename, raw_output ); Description : sha1_file() function calculates the sha1 hash of the file specified by filename using the » US Secure Hash Algorithm 1, and returns that hash....