A string is just a sequence of characters. In PHP, strings are enclosed in quotes such as ” or ‘. Strings can be printed or assigned to variables. Let’s take a look at an example. <?php $my_string_variable = "This is a string" . ‘ and so is this’; print $my_string_variable; print "\nHere’s another string"; ?> [...]





3 Comments
Lessons