Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PHP Tut 3
#1
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;

?>
Reply
#2
A good tutorial for showing how variables work, tbh. Smile
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  PHP Framework List: An Ultimate Guide to 102 PHP Frameworks for Web Developers tk-hassan 0 956 07-27-2020, 11:26 PM
Last Post: tk-hassan
  PHP Video Tutorials (PHP For Beginners) Eleqtriq 4 3,705 10-10-2011, 01:00 PM
Last Post: Greyersting
  [TUT] PHP Shell Scripting Gaijin 8 8,479 08-05-2011, 09:34 PM
Last Post: BreShiE
  [TUT] PHP Password Protected Page PurpleHaze 23 7,102 05-20-2011, 02:56 AM
Last Post: stephen5565
  [TUT] Pagination using PHP Gaijin 7 5,021 11-01-2010, 09:01 AM
Last Post: Arеs

Forum Jump:


Users browsing this thread: 1 Guest(s)