*NEW

PHP – Test Transformation (strtolower, strtoupper, ucfirst, ucwords

Text transformation in PHP is useful not just for esthetics, but to also make sure that data is uniform when dealing with databases and such. strtolower() https://www.php.net/manual/en/function.strtolower.php https://www.w3schools.com/php/func_string_strtolower.asp strtoupper() https://www.php.net/manual/en/function.strtoupper.php https://www.w3schools.com/php/func_string_strtoupper.asp ucfirst() https://www.php.net/manual/en/function.ucfirst.php https://www.w3schools.com/php/func_string_ucfirst.asp ucwords() […]

*NEW

PHP – Parse Filenames and Paths with pathinfo()

The pathinfo() function allows you to turn a filepath into an Array and then interact with the keys of the Array. You can grab the Filename, Extension, Folder Name and Basename. pathinfo() https://www.php.net/manual/en/function.pathinfo.php https://www.w3schools.com/php/func_filesystem_pathinfo.asp pathinfo.php

PHP Programming (NEW)

PHP – Creating Arrays

Arrays allow for a variable to have multiple values.  This gives you the ability to create lists of names, and be able to sort them easily.  Also it allows you to have values from a […]

PHP Programming (NEW)

PHP – if Statements

If Statements allow you to trigger code if specific conditions are met.   <?php $age = 20; print “Your Age is $age”; print “<br>”; if ($age < 18) { print “you too YOUNG”; } ?>

PHP Programming (NEW)

PHP – Comments

Commenting code allows you to add notations to you script to explain why it was written how it was. You can also use commenting to keep specific code from running during troubleshooting.   <?php /* […]

PHP Programming (NEW)

PHP – Setting Variables

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; […]

PHP Programming (NEW)

PHP – Why Learn…

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 […]

PHP Programming (NEW)

PHP – What is…

PHP is a Hypertext Preprocessor. This essentially means that PHP dynamically writes web pages for you. So it can query a database and print a report from it, or change CSS and such based on […]