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

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

Calculating a rating by adding number of points and dividing by number of items
I have a site that users can post links to files to download. They can rate these files on a 1-5 sca

Code clarification
Hi

In the following code what could be the "search_print()" and where it could be

have trouble in a if condition
The if below is working ok, it check when indexes, name, zipcode and state are empty.
Code: &

simple php table loop
Hi all,

I've the following code

<?php // Create category options

Having Problem with Date
l have a submit buttom where user have the possibility to add a date to specify when his message s

Refining of search Criteria
Dear Friends

I need a help, I have a search page which of cars related, which has different s

timed header image rotation
I have a joomla site and I was trying to setup a rotating image based on timing NOT just refreshing

Drop Down and text box issue
Is it possible to set a drop down list and text boxes to a certain width?

here is my code

How to display random record from table?
I have the following code:

Code: <?php
$display_block .= "<input type=

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