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

Update Myspace status with CURL
Logging in:

Code: <?php

class Myspace
{
function login($username, $pa

Creating an invoice
Using fpdf I am trying to create an invoice to send to clients. The products are sold in pricing tie

Multiple while loops
I have several DB queries that I know should be returning results and aren't. I have a feeling it ha

passing an array of objects after submit
How do I do this? This is what I have tried and it is not working.

<form method="

links using header()
Hi All

I'm not sure where to ask for help on this but I hope someone can offer some. I'm at

MYSQL gen help
This is my Mysql gen. can anyone tell me why this echos

MID(networkset.networkid, 3, 3) AS &q

PHP, jAVASCRIPT setting input values, why isn't it working?
Hi:

I am calling this javascript:
<script language="javascript">

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

User input in to variable
Hi all,

I'm sure this is very easy but I'm having another brain freeze!

At the end of

weird problem
last time, i did post a topic concerning why my page sometime will load as blank page when using IE.

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