Why should you learn PHP when there are two many “better” languages available? It’s easy to learn. You can build practical web apps within a week of starting. Finally a huge number of legacy web apps such as WordPress, Drupal, and many of the open source projects that you download were coded in PHP. To be a professional you’ll need to have 5 or more languages under your belt, and although PHP may not be the one you end up preferring to use, it’s a good one to be comfortable with.
Do While Loops perform one iteration before a condition is tested.
Variables in PHP can be set without needing to be declared. <?php $string = “Hello World”; $int = 1; $float = 2.2; print “<h1>String</h1>”; print $string; print “<h1>Int</h1>”; print $int; print “<h1>Float</h1>”; print $float; […]