$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

UL and LI Add Form
The idea I want here is when the user click on a character name from the drop down select bar at the

does anyone know a php script to send mail using gmails/googles free smtp server
cause i heard u can do that but i dont know how

how to make database item unique
Hey guys,

is it possible to do this:

I have the database item $title being pulled for

Help with file_get_html
The following code gives the expected results:

<html>
<head&g

Transferring session variables into MySQL
I am trying to transfer $_SESSION variables into MySQL. However there is an error in my MySQL statem

Xml parsing
I need a suggestion about parsing xml with multiply parts like pervious...
i.e. different device

Thread in PHP
Thread in PHP
Some basic use and basic code for thread in php
This is my question?

How to make URL loads only on login
On my page, when a user login he's redirects to user_home.php. I made it also to open the chat scree

explode() function problem maybe
Hi I'm having trouble searching my database. When I type two words in the search field it only searc

Using Curl_multi for processing multiple URLs
Hi,

I am at a loss as to how to implement this. I would like to be able to automatically assi

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