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?

No comments posted yet

Your Answer:

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

Php Mysql Page Loading Notice
Hi all,

I was wondering if there is a way (Sure there is) of showing a message or an image wh

Forgot password won't work
My forgot password thing is not working properly. It is giving me this errorMailbox unavailable. The

search function
HI guys,

if anyone could point us in the right direction of how to do this, or provide some t

Posting Serialized Data Not Working
I am trying to send an object from one PHP file to another using POST. I serialize the object and th

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

PHP Mysql Staff Induction System
Hi there, I'm pretty new to PHP and Mysql so could really do with being pointed in the right directi

Print 'a' to 'z' via for loop
A very simple problem..
How Can I print a to z NOT a to y ?
It is a part of a code where
<

Custom Container in module pool program
Hello everyone,

I have created a custom control in my module pool screen. Now I want to s

PEAR Email Attachment w/ $gpg
I have no issues with this code if I take out the attachement section and include the info in the em

default SAP userid
hi,, I just like to know if it is ok to use the default SAP user id (SAP*)?

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