Author: jyoti rani

Php tutorials for beginners with example 0

html_entity_decode() – PHP String Functions

Syntax : html_entity_decode ( strings, flags, encoding/character-set ); Description : html_entity_decode() function will converts HTML entities to their applicable characters. Note : htmlentities() function is reverse of it. Parameter : strings – This...

Php tutorials for beginners with example 0

htmlentities – PHP String Functions

Syntax : htmlentities ( strings, flags, encoding/character-set, double_encode ); Description : htmlentities() function will converts all possible characters to HTML entities. Note : html_entity_decode() function is reverse of it. You can convert...

Php tutorials for beginners with example 0

ltrim – PHP String Functions

Syntax : ltrim ( string, charlist ); Description : ltrim() function will truncate spaces or other characters from starting of input string. We can remove “hi” from the starting of input string...

Php tutorials for beginners with example 0

rtrim – PHP String Functions

Syntax : rtrim ( string, charlist ); Description : rtrim() function will truncate spaces or other characters from the end of input string. We can remove “es.” from the end of input...

Php tutorials for beginners with example 0

trim – PHP String Functions

Syntax : trim ( string, charlist); Description : trim() function will truncate spaces or other characters from the beginning and end of input string. It will remove “hi” from starting and “es.”...

Php tutorials for beginners with example 0

hebrev – PHP String Functions

Syntax : hebrev ( string, charsperline ); Description : hebrev() function will convert Hebrew text from a right-to-left flow to a left-to-right flow. Basically it converts logical Hebrew text to visual text. It...

Php tutorials for beginners with example 0

hebrevc – PHP String Functions

Syntax : hebrevc ( string, charsperline ); Description : hebrevc() function will convert Hebrew text from a right-to-left flow to a left-to-right flow with newline conversion. Basically it converts logical Hebrew text to...

Php tutorials for beginners with example 0

strtolower – PHP String Functions

Syntax : strtolower ( string ); Description : strtolower() function will take string as input and converts all letter to lowercase letter, if that character is alphabetic. Parameter : string – This is...

Php tutorials for beginners with example 0

strtoupper – PHP String Functions

Syntax : strtoupper ( string ); Description : strtoupper() function will take string as input and converts all letter to uppercase letter, if that character is alphabetic. Parameter : string – This is...

Php tutorials for beginners with example 0

lcfirst – PHP String Functions

Syntax : lcfirst ( string ); Description : lcfirst() function will take string as input and converts its first letter to lowercase letter, if that character is alphabetic. In general language, its...

Php tutorials for beginners with example 0

ucfirst – PHP String Functions

Syntax : ucfirst ( string ); Description : ucfirst() function will take string as input and converts its first letter of a string to uppercase letter, if that character is alphabetic. In...

Php tutorials for beginners with example 0

ucwords – PHP String Functions

Syntax : ucwords ( string, seperator/delimiters ); Description : ucwords() function will take string as input and converts first letter of every word in a string to uppercase letter, if that character...

Php tutorials for beginners with example 0

join – PHP String Functions

Syntax : join ( separator, array ); Description : join() function will glue(join) array elements in a string. join()  is an alias of the PHP implode() function. Parameter : separator – Optional....

Php tutorials for beginners with example 0

convert_cyr_string – PHP String Functions

Syntax : convert_cyr_string (string, from, to); Description : convert_cyr_string() function will converts a string from one Cyrillic character set to another. Parameter : string – This is Required parameter. This is string which...

Php tutorials for beginners with example 0

implode – PHP String Functions

Syntax : implode ( separator, array ); Description : implode function will join array elements in a string. Parameter : separator – Optional. This is an optional parameter. By default it is an...

Php tutorials for beginners with example 0

explode – PHP String Functions

Syntax : explode (separator, string, limit); Description : PHP explode function will splits the string by string, into array of elements. Parameter : separator – This is required parameter from which string is splited....

Php tutorials for beginners with example 0

PHP echo string function

Syntax : void echo (strings); Description : PHP echo function will outputs one or more strings. The echo() function can be used with shortcut syntax. Prior to PHP 5.4.0, this syntax only works...

PHP – Syntax 0

PHP – Syntax

We use opening tags i.e “<?php” to tell the interpreter to start parsing the code. And closing tag i.e “?>” to tell interpreter to stop parsing the code. Syntax to...