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

Change Web page language
i doing this thing first time but i dont find any suitable solution for it. On the demand of user. I

Can I call a class inside a function?
I have a class written in another file that handles my image resizing.

Can I do this (php say

Read from forum
Haven't written anything forever and I would like to get back.
What I'm trying to do is getting t

Different actions for different parts of a string
<?php
function dosomething($string, $else = '') {
if (empty($else))
$string

extract a file from zip file
hi,
i know how to unzip a zip file in php, but is there a way to just extract a certain file only

function not returning the correct value
I have a program that needs to return a value from a function. I have an output statement inside the

Need Reporting Advice
My SQL server doesn't support MS SQL reporting services that comes with SQL Enterprise or Express. T

Is there a way to override built in php functions without APD?
I am trying to use the
rename_function()
override_function()
options that are built into

Really need helps regarding Pagination with Sort
I need someone helps regarding pagination problem...i actually want to make my page limited to let s

FPDF Help
I've been playing with the FPDF module. I was building a form and rolling right along and then sudde

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