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

Displaying returned XML in another PHP page
I have an online payment form that will return XML given if a payment is successful or declines. I

cURL Upload Help
OK, I am creating a bridge from a local program to my website and I am trying to find the best way t

this code is strange !
Hi i got this code from the web.. It checks for live and dead socks
It is working perfectly on my

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

disabling a button server-side then re-enabling client-side breaks button postback
I have a tabbed container and a button (not in the container) on a page. If the first tab is selecte

shoping cart issues
i´ve wrote this and works when i add an item to, my cart, but when i want to add othrer item just

problem with refreshing
in my site, i have an index page, it has a main div. this main div's content is changing according t

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

Points for Wiki contribution
Hi everyone,

I want to know how long does it take for the moderator to award points for a

I would like "for" to wait 5 sec
I would like my 'for' loop to wait 5 sec before second iteration.


for ($i=0; $i<10

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