PHP Newsletter

Join now and receive weekly updates pertianing to the world of PHP.

Polls

What do you think about the new PHPMine Design?
Awesome
Not Bad
Sucks

PHP Gigs By City

PHP Jobs By Topic

Advertisements

How do I do this (PHP) with a gettype?

Asked 2010-02-05 18:09:01 by Jaz

Ok, I got this, but now, I need to know how to use this with a gettype. How do I do this? Thanks. (Here's the script).

<?php
$john=21;
$james=22;
$janet=23;
$jane=24;
$jared=25;
echo 'John is '.$john.' years old, James is '.$james.' years old, Janet is '.$janet.' years old, Jane is '.$jane.' years old, and Jared is '.$jared.' years old.';
?>

Anwered 2010-02-05 18:16:15 by Paul W

All your variables are integers. I don't see any need at all to use gettype in this script. What is your teacher smoking these days?

Questions and answers provided by the Yahoo Answers Community.