an interesting question


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

Greetings folks, got to ask an interesting question...

let say
i have created a function something like

function xxx($a=4, $b, $c=4) {


}


now, is there any way to call this function so that i only send the required parameter (ie; $b) while bypassing the other two parameters ($a , $c), ie; to let them use their default values.

i tried,
xxx( , 55, );

ie; i bypassed the params that i want to use their default values, but i can't do this way, php gives some error. Is there any other way?? any idea?

290 Like 43 Dislike
Previous php-forum Next php-forum
Other php-forum

HELP with mysql_real_escape_string
I'm looking to remove apostrophes completely when someone enters lyrics but don't have a clue how to

Return X values where an ID number doesnt matter
Well as for subject heading, thats the best i could think of.

Currently im having a problem w

Converting from one format to another
"I have got a date in DD/MM/YYYY but I need it in MM-DD-YYYY. Help!"

Echo Tweaking help!
HI. I would like to have the output of the entered variables repeat forever, but it's stopping at th

Date/Time and Checkbox
Hi Everyone,

I am trying to figure out how to insert the current date and tim

filesize() returns 0
I have a socket program that runs in an infinite loop, listening for connections, in this socket I h

Problem with "dynamic" index page
Hi. I have one question. In my index.php page I have this kind of code:
Code: // listaa sivut

On page view, minus credit
Hello all, please, I need a little help with this script. I am charging one credit (credits can be p

Reditecting pages based on logic
Newbie here, apologies in advance!

I am trying to use the header function to forward one of a

Default TimeZone
The server I'm working with is hosted in America so all times inserted into the database are coming

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