Variable Clash


Posted on 16th Feb 2014 07:03 pm 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?

No comments posted yet

Your Answer:

Login to answer
337 Like 28 Dislike
Previous forums Next forums
Other forums

Preg_match question
I want to use preg_match to make sure a string is always 6 characters long and only contains 0-9 and

date("now") prints out wrong date ?
Hi Guys
Anyone know why and how I can fix it ?

PHP - MySQL Fail
My PHP code will only execute the first part of my code...

Code: <?php

sessio

PHP & Java
Hello,

can PHP code be used inside java code?

Code: [Select]<SCRIPT LANGUAGE=&q

error checking breaking my code
Hi there, OK first of all, big apologies for what I assume is really fundamental errors in the struc

calendar dates and hours compare problem
i have a calendar in wordpress, everything works great except that i can make 2 meetings at the same

modifying query string with no page refresh
Hi everybody,
I've tried to get info about my problem all over the internet but i didn't find out

if else problem, help please
i have this script that i made only i try to also put in a if else for for some reason the script is

Web Host List
Here is a list of web hosts that offer PHP and MySQL. It is no where near a full list, but it is mos

PHP and MySQL on intranet?
Is it possible to use both these on an intranet network?

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash