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

Parse Error
Hi Guys,

I have a function in my class which returns a string link variable. The problem is i

Sequencing or queuing parallel process
Scenario is as follows
There is one parent process say P1 and 4 child processes say A B C D

Beginner question regarding Array's
Hi everyone, the page im working on has an array of variable at the top...

Code: $define_li

first few characters only
hi, does anyone know how to use PHP to take the first few words of a text and limit them? i have see

How to show next and prev records
Hi all,

Sorry if this is simple, i'm very new to php, well, any programming language actually

Add weeks in a query?
I have a SQL that summarizes the quantity per week. The weeks that has no value does not exist in th

Batch Related Pricing
Hi, I need some clarity on the batch related pricing

For example the following are the b

UL and LI Add Form
The idea I want here is when the user click on a character name from the drop down select bar at the

some questions
Hello,

I am looking for the answers for following questions:

1) Does PHP support overl

List/Menu Box
On an edit page when you want something to select what a user has previously selected from the datab

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