10.04.2014 Views

to get the file

to get the file

to get the file

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Variables<br />

• There are no type declarations because of dynamic typing<br />

• The type of a variable is set every time it is assigned a value<br />

• An unassigned ( unbound ) variable has <strong>the</strong> value, NULL<br />

• A variable of NULL in <strong>the</strong> expression will be coerced <strong>to</strong> a value<br />

dictated by <strong>the</strong> context of <strong>the</strong> use<br />

(Ex) If a number, NULL is coerced <strong>to</strong> 0<br />

If a string, NULL is coerced <strong>to</strong> <strong>the</strong> empty string<br />

• The unset function sets a variable <strong>to</strong> NULL<br />

• The IsSet function tests whe<strong>the</strong>r a variable is NULL<br />

(Ex) IsSet ( $fruit ) returns TRUE if $fruit has non-NULL value<br />

12

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!