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

Files in current folder. Should be an easy fix.
Never mind. I've asked about this before and just found my answer. Anyway to delete this?

mail()
Hi all. I have a problem with emails. I am trying to set up a mail system where customers can subscr

ldap connection
We are using ldap to get user information from the domain controller. It was working before. Recentl

how to validate date using javascript
I need to validate date in textbox using javascript..
The date is must be not greater than TODAY

Array question
Does anyone know how to create a program that takes the $ amount for 8 different departments and gi

Upload file and add HTML
Hey everyone,

I have a client has meeting agendas and minutes that should be posted online. I

Warning message
I've put a website that I was doing live and I'm getting this warning message when I try to add a ne

mysql UPDATE request not working and driving me crazy!!!
Hi,

I have been stuck on this for ages.

Quite simply I am trying to update my database

UTL File problem
Hi
I have a file in certain path with the following permissions (The file is a dummy file witho

Notice Undefined index: reset/ Attempting to redirect, works, but get a notice
Full Header.php is:
Code: [Select]<?php
$reset= false;
$reset= strip_tags($_GET[&quo

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