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

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?
No comments posted yet

Your Answer:

Login to answer
290 Like 43 Dislike
Previous forums Next forums
Other forums

help with variable
I've got a problem, i want to echo some images depending on the $id, however for me to get that id i

Limiting uploaded file type
I am working on a simple upload script, and I need it to limit the allowed file type that is uploade

Problem with passing variables
I'm not really a php programmer so I'm really struggling with this issue.

I have a banner s

Transaction variant for VA02 not working
My requirement is to have transaction for user to only add the output and print a sales order.

Pls help with PHP
Pls can anyone direct me on how to create a user account for a customer. For example i want know if

Output Buffering question
Hi all,

I've been trying to wrap my head around output buffering. So far I've found tons of

Need to write a cookie with a url var
Not sure if its possible, but I need to write a cookie with a url.

So this would write 2232 a

session variable problem
Session variable is not working in Fire fox i am getting null value but it is working fine in IE.

How to find OS bit version
How can I tell the person browsing my site is running 32, or 64 bit operating system?

question about stripslashes and real_escape_string
im cleaning up an old app that I wrote fixing some of the vulernabilities from attacks.

I hav

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