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

Working with Dates, help.
Sooo to make a long story short, here's what im trying to accomplish.

I need to create a drop

Ajax Error since Upgrading to 3.5
Ever since upgrading my site to .NET 3.5 (I needed LINQ), I've been getting this annoying error on o

Help with echo()
I'm having some problems with this code:

Code: echo '
<A HREF="jav

Do not allow posting of whitespace
Currently the script below works if the user does not type a name/message, but if i create a whitesp

present value of sequence?
Hi

Please help me to find out the present value of sequence?

Thanks

Curl timeout breaks script
So im having difficulties with skipping timeout error in curl
my script calls different functions

How could I do this?
Ive got a simple lottery game, and am using an sql database to keep track of the numbers bought. But

limit string by words??
hello all,

I was wonder if there is a function to limit a string by the number of words inste

links using header()
Hi All

I'm not sure where to ask for help on this but I hope someone can offer some. I'm at

PHP & MS Access - Line Break
Hey Guys!

I'm pulling records from an MS Access database and listing them using PHP and I'm r

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