While loops allow you to repeat code while a condition remains true.
<?php
$x = 6;
while($x <= 10) {
print "hello for the $x time.";
print "<br>";
$x++;
}
?>
While loops allow you to repeat code while a condition remains true.
<?php
$x = 6;
while($x <= 10) {
print "hello for the $x time.";
print "<br>";
$x++;
}
?>
You can send emails directly from PHP scripts using the mail() function. You need to have a local email server setup to do this, to to learn it’s best to use a shared hosting account […]
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
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() […]
Be the first to comment