PHP: Indexed Arrays II

Derek Bridge

Department of Computer Science,
University College Cork

PHP: Indexed Arrays II

Aims:

Average rainfall

Compound assignment operators

Increment and decrement operators

Post-increment and pre-increment

Average rainfall again

Built-in functions

Class exercises

More built-in functions

Example

Class exercise

Your answer

$sentence = trim( $_GET['sentence'] );