Variable Clash

Posted on 16th Feb 2014 by admin

In the past I've had variables clash. For example:

Code: <?php
$c = 5;
$cat = "Molly";

$echo $cat . " is " . $c . " years old.";
?>
Before, I've seen it do: "5at is 5 years old."

Is there anyway around this?

Other forums