@ -375,3 +375,15 @@ Alternative syntax:
<?= $key ?>: <?=$value?> <br/>
<?php endforeach ?>
```
## Functions
```php
<?php
function greet($name) {
echo "Hello $name";
}
writeMsg("Matt"); // call the function
?>
@ -1,17 +1,5 @@
# Intermediate PHP
## Convenience Methods
PHP has lots of global functions that will help you out: