PHP String Length
The handling of strings is one of the pillars of PHP programming, and although there are countless functions to work with that can be consulted in the official programming, here we will only see the most used ones.
Strings can be defined in different ways, although the most common is to enclose them in quotes (single or double). In principle, both forms are accepted, although a small classification is established:
We will use single quotes for strings.
We will use double quotes if we are going to use escape characters or control interpolate variables, etc.
For example:
echo "\ x2a"; // display an asterisk using hex notation
$who = "María";
echo "Hello $who \ n"; // show Hello María and change lines
echo 'Hello $who \ n'; // show Hello María \ n
echo 'My name is...