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

mysql select with $_get ?
Hi, i have this code:
Code: // If char id is 0 and character dont exist do:
if ($_GET["id

I need some help with the IF command...
I have a large number of images in one section of my website with the .jpg format. I'm adding a bun

Help with Contact Form
I have this Form on an html page and the associated code on page.php (below).
I keep getting the

upload image name with extension using php
hi frds..

<input id="file1" type="file" name="file[]" &a

function to return url
Hi,

Can you guys help me giving a function that takes all the contents in a particular field

Unexpected T_Variable ?
Hi all,
I dont really know what I am doing!! I know I'm doing something wrong, and I know its on

Most basic form question ever?
Hello,

I want to use this snippet to make sure the fields in a form are ok before processing

reating a background image
I am building a site in drupal and have a php form in it, due to certain annoyances with module buil

image upload, resize THEN submit form
Ok so I have a form that requires the user to upload an image, and then do something with that image

Extracting Long text from message class with parameters
Hi,

I would like to extract the long text from a message class. However, the long text ha

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