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

Save file by click
Hello.
I'm not understand how to save file from page. I'd like make link to file with save abil

How do i do multi uploads?.
Hey i would like to do this : http://hosting.mrkrabz.net/

I've got the base down you can uplo

Help with syntax
Hi all!

The $bridge variable is not getting passed while it is contained in the line below:

Select all entries from database that include a phrase
I have a database of clubs - one of the categories is meeting time and place
I would like to have

Rand() help needed
Hi all,

Can someone explain and give me a quick example of how I would go about this?

Multiple Options for a Single Page
For this example I want to use the Handlers option which is under Fed Admin and all the related codi

Month String to Numeric?
Hi guys,

Given a month as a string, is there a simple way to find the numeric representation

Displaying image pathname instead of image
Hello

Im trying to upload and then display images from a mysql database - Its only basic and

Must be a string? Huh, what? HELP?
with the following script, I get
Fatal error: Property name must be a string in /home/content/e/

Count on multidimensional array
Hi, i got an array as below:

Array
(
=> Array
(

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