$variable = $variable


Posted on 16th Feb 2014 07:03 pm by admin

Hello

Sorry if this is a really simple question but I have run out of ideas. Is there a really simple way of doing the following:

$animal_dog = $something_something[$i]['animal_dog'];
$animal_cat = $something_something[$i]['animal_cat'];
$animal_cow = $something_something[$i]['animal_cow'];
etc, etc, etc

Is there a way to simplify the process above so that I could just do:

$animal_* = $something_something[$i]['animal_*'];

I hope this makes sense and thanks in advance... this would be so handy to know how to do!

Thanks

No comments posted yet

Your Answer:

Login to answer
130 Like 53 Dislike
Previous forums Next forums
Other forums

Conditions of info record - Error
When i created GR (901) and PO create automatic my PBXX is obtain the net price of info record but

Shuffle Array
Hi,

I am writing a script for a game that needs players to randomly be assigned a target (ano

SQL Injection
In my attempts to protect my database from mySQL injection I have created another problem for myself

ereg_replace issue
hi there people

i have this code happening with regards to my wamp server. is this something

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

type check while uploading
Hi Everyone,

How can I check the exact type of a file while uploading on my site?

Here

Change Web page language
i doing this thing first time but i dont find any suitable solution for it. On the demand of user. I

Function
How can I make this function that once you click the link in the code it takes you to a new page wit

ImageCreate()
When I create an image and add text to it I want my text to be replaced with a PNG image, because th

Adding meta tags under Zend FW
Hello there, recently has come to my hands the FTP of a website which is running under Zend, I would

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