Dynamic Add Section

PHP - Strings

Dynamic Add Section

String is a collection of character.

String can contain alpha numeric character.

While declaring string variable we need to set the value within a double('' '') or single (' ') inverted commas.

String Declaration :

Here $str, $str2, $str3 all are string type data.

If we run this program will get the above output. One or more variable can be print in a single echo keyword;

String Functions :

The main things we need to know that PHP provides huge number of String Functions. By using this functoins we can easily do many complex things in simple way.

strlen()  - Returns the length of string

str_word_count() - This function returns the number of words inside the string

Full PHP String function list : PHP String Reference

Dynamic Add Section
Dynamic Add Section
Dynamic Add Section
Dynamic Add Section
Dynamic Add Section
Dynamic Add Section