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;
Did you know?Explore Trending and Topic pages for more stories like this.
$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

restricting another login once you logout
Hello,

how can I restrict a page from login authenticating against info in a MySQL DB for a s

how to get values from $_Post with onchange="form.submit();"?
Hi, I have a form that submit to itself with a file upload field and two other hidden field values.<

Output Full URL of Current Page
Let's say I am currently viewing a dynamic page:

http://www.mydomain.com/directory/index.php

Generate multilayered array from string.
ok so i have a string that looks like this:
Code: blog:edit_all,delete_all|users:edit_all,delete_

How a counter of users ? such as ---> (231 Viewing)
I want to count how many users are actually viewing the page, How is that possible?
Thank you guy

Referential Integrity problem when inserting into 2 tables at same time
Hello Everyone,

Im relativity new to PHP and MySQL and i have come up against a problem. i h

What's wrong with my code
sobbing for many days, still don't know why please Help. Why my page isn't posted correctly. In a

imap: how to save a copy of sent emails to sent elements
Hello my friends,

I am writing an online emailing application with inbox outbox/sent elements

Need help with basic sql
Hi,

I am using oracle 10g, and having some small doubts related to sql , here goes the si

How to make a input/output field with multiple lines
Hello.
I put a input/output field on the screen but I could not change height of it. I need to

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