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

php/xmlrpc class issue
I am working on xml-rpc in php to start with.

I have a class that only has variables defined

Help Ordering Arrays
Hi, I have 3 arrays as shown below.

Code: $users = $this->get_latest_users();
$flir

Can anyone give me some link on .htaccess tutorial
i wish to have friendly url using .htaccess, but no idea yet about this

Hope that anyone cou

Call db table from any PHP file
Hi,

I want to be able to call a database table that will be setup in another file called init

Code error with Index.php
Error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/runevid/public_

PO Release Strategy Issue
Hi Experts,

I am facing an issue related to PO release strategy. The details are-
<

PHP not creating file.
Its supposed to create a .ini file in the /scriptfiles/users/ with the name they entered into the fi

whats wrong with my code please help!!!
this is the error


Warning: mysql_close(): supplied argument is not a valid MySQL-Link res

MySQL issue
I am taking sentences through a form on page. Then checking some condition and trying to insert them

convert static html data into dynamic
hi all

i need to convert a website which has static above 2000 articles into dynamic and add

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