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

A Few Questions
Hi, I want to ask a few questions that I can't seem to find..

1) I'm creating a "shortcu

php mysql query from input textbox
Hi,

I have a text box, in that i have given the mysql query. I can able to get the query in v

TinyMCE / Ajax Postback Problem
Hiya all,

I have a page which loads the TinyMCE editor. On the postback I obviously want to f

Socket programming
Hello all,

I have a PHP socket script. GPS trackers connect to this socket. IMEI verification

What am I missing here? Help!
Hello all!. I can't seem to get this working right. Well - it renders right, but something is goin

how to load a Sys file with system load and call images?
normally you need register the module as a service with CreateService, and start the service

natcasesort works on one server but not on another
Hi

I have a problem that I was hoping that someone can help me with.

I'm trying to use

Update Database
Hi All,


I have a problem with this:

Code: [Select]<?php
session_start();

using file_get_contents??
okay how would i create a script using file_get_contents() in php have it grab search pages 1-20 and

do while conditions
i want to display 6 images in a 2x3 table
now what would be the correct logic to
count that th

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