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
Did you know?Explore Trending and Topic pages for more stories like this.

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

EXplanation help
Hey all,

I am still fairly new to PHP programming and I am trying to put together a page wher

Need a fuction to count entries in a field
Hi
I need a fuction to count how many times a email address is entered in to a field.

I ma

Cant display mysql data
Hey all,

I am learning php and my first goal is to create a simple CMS. At the moment I am st

add text and number image
hi guys ..

ok see i want the user to add their name and pick a number then click get it and i

Help to integrate whois Domain Details to website
Hi,

can i know is their any php script r methods to add domain details to my website.

Coding Critique
I was hoping someone could take a second and look down my code and see if they see any problems with

Deleting a record php
Attempting to setup delete a record page. The below code I put together doesn't seem to work.

simple php table loop
Hi all,

I've the following code

<?php // Create category options

Windows 7
Windows 7 default user account control worries experts. Corporate IT departments should be pleased w

Echo-ing MySQL content and Keep Formatting?
I have data in my MySQL such as:

QuoteBlah blah

Blah blah

etc
but when i ech

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