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

form variables from database help.
Hi all,

I would like to have a form that gives you options based on the results of an mysql q

Php WordPress help
I am writing the following code for making a plugin

<?php
header("Content-Type

MFC GUI Programming
I am working on a project right now that requires me to create a MFC Windows GUI. Basically it need

first id from db not showing
I have a php script which displays the content of a mysql table as a html table with sorting, delete

highlighting search terms
well, I started this in the regular PHP section, but it no longer fits there. Suffice it to say, I'm

limit string by words??
hello all,

I was wonder if there is a function to limit a string by the number of words inste

Estimations and Effort
HI Gurus,

Would like to know whether SAP have a provision for carrying out the Project es

Mail sending is slow on server
Why mail is taking time to be send on apache-linux server

firefox wouldnt stream mp3 files completely from my php page
hi everyone,
I have a php file trying to read and stream mp3 files. It works fine in IE but my pr

Quick variable question
hey guys/gals,
im trying to write a php script and it works fine as i have it, but i need to set

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