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

cURL proxy
Okay here is the thing... i know how to add proxys

Code: curl_setopt($ch, CURLOPT_PROXYTYPE,

PHP and MySQL on intranet?
Is it possible to use both these on an intranet network?

unexpected T_SL without a shift left token
Nothing too see here, I'm an idiot and resolved the problem.

PHP Include not working
The website is http://www.grlistingservices.com

The code block is as follows:

<

All possible combinations of String in PL/SQL
Hi All,

Could you please explain the logic of getting all possible combinations of String

bind error during socket programming
i am kinda new to socket programming. wrote the below code for a server. but getting the bind error

eregi to preg
Im converting my regex for php 5.3 and I am stuck on the following

Code: [Select]if((eregi(&q

my sql select id and then update problem.
I need to select some auto incremented ids out of a database and then use those id in a where statem

Update Database
Hi All,


I have a problem with this:

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

"GROUP BY" in arrays
Well i'm looking to do something i usually could do easily using COUNT and GROUP BY if it was a sql

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