Support Forums
PHP Tut 3 - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: PHP The Hypertext Preprocessor (https://www.supportforums.net/forumdisplay.php?fid=21)
+---- Thread: PHP Tut 3 (/showthread.php?tid=8063)



PHP Tut 3 - Minus-Zero - 06-29-2010

This is just some more variables. Arent variables Fun?? Please thank and rate 5 stars! Dont forget to comment!

Boolean: It specifies if something is true or false
Code:
<?php

$login = true;

?>

Integer: Is like whole numbers ( 1, 200, 134, -87 )
Code:
<?php

$health = 50;

?>

Floating-point: Usually a fractional number like 3.3 or 3.141592653589 (THATS SOME PIE FOR YA). They can be expressed in decimal form or scientific Notation!!! OMFG
Code:
<?php

$grade = 59.4999;

?>

String: Its a sequence of characters like "whassup" or "supaman"

Code:
<?php

$alias = 'Minus';
$sport = 'hockey';
$sent = "$alias loves to play $sport";

echo $sent;

?>



RE: PHP Tut 3 - `P R O D I G Y™ - 07-14-2010

A good tutorial for showing how variables work, tbh. Smile