} elseif($cruuent_url_slug == 'php-oops'){ ?> } elseif($cruuent_url_slug == 'javascript'){ ?> } elseif($cruuent_url_slug == 'jquery'){ ?> } elseif($cruuent_url_slug == 'ajax'){ ?> } elseif($cruuent_url_slug == 'codeigniter'){ ?> } elseif($cruuent_url_slug_core == 'laravel'){ ?> } elseif($cruuent_url_slug_core == 'mysql'){ ?> } elseif($cruuent_url_slug == 'node.js'){ ?>
String variables are used for values that contain characters. A string can be used directly in a function or it can be stored in a variable. String value are enclosed within single or double quotes marks.
singly quoted strings are treated almost literally, whereas doubly quoted string replace variable with their values as well as specially interpreting certain character sequence.
There is only one string operator in php. The concatenation operator (.) is used to join two string values together.
It return the length of the string in characters.
The strops( ) function is used to search for a character or specific text within a string. If a match is found, it will return the character position of the first match. If no match is found it will return false.
There are many ways in which two strings can be compared for equality.
The strcasecmp( ) function operates exactly like strcmp( ), except that is comparison is case insensitive. Int strcasecmp(String s1, String s2)
The strspn( ) function returns the length of the first segment in a string containing characters also found in another strings.
trim function remove white space from the the beginning and end of a string.
trim(string,charlist)
here string is the user defined string.
ltrim() - Removes whitespace or other predefined characters from the beginning of a string
rtrim() - Removes whitespace or other predefined characters from the end of a string
The PHP str_word_count() function counts the number of words in a string:
in PHP, strrev() function reverses a string:
str_replace() function replaces some characters with some other characters in a string.
Trending Tutorials