PHP Basic Tutorial
MySQL Connection
Strings are sequences of characters used to store and manipulate text. PHP provides a variety of functions for working with strings, making it easy to create, modify, and manipulate text content.
1. Creating Strings
\\
and \'
).Try it yourself
\n
(newline).Try it yourself
strlen()
: Returns the length of a string.Try it yourself
str_word_count()
: Returns counts the number of words in a string.Try it yourself
strpos()
: Finds the position of the first occurrence of a substring in a string.Try it yourself
substr()
: Returns a portion of a string.Try it yourself