moving functions to php.md

master
Matt Huntington 7 years ago
parent 5d8e182ee1
commit a026f2d1f1

@ -375,3 +375,15 @@ Alternative syntax:
<?= $key ?>: <?=$value?> <br/> <?= $key ?>: <?=$value?> <br/>
<?php endforeach ?> <?php endforeach ?>
``` ```
## Functions
```php
<?php
function greet($name) {
echo "Hello $name";
}
writeMsg("Matt"); // call the function
?>
```

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

Loading…
Cancel
Save