Strings in PHP
As mentioned earlier, data can have different types. One of the types - numbers, we have already studied a little. Now let's move on to strings.
Strings are created using quotes:
<?php
$str = 'abc';
echo $str; // will output 'abc'
?>
Quotes can be not only single, but also double:
<?php
$str = "abc";
echo $str; // will output 'abc'
?>