Using Strings in PHP
Before we get into some more advanced String functions – let’s take a more in depth look at how to mix HTML & PHP as well as reviewing how the echo statement works. Inserting Line Breaks There are several ways to insert HTML into PHP code. We are going to use doing line breaks as…
Read MoreString Functions
There are lots and lots of functions in PHP that do fun things with strings. These can be very useful in parsing data. Here’s a full list at at w3schools.com. We will take a look at a few specific ones. We’ll use these strings in these examples. $text1 = “Today is” $text2 = “a very…
Read More