Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 4 of 4
  1. #1
    Member KillaTeddyX's Avatar
    Join Date
    Dec 2006
    Posts
    81
    Member #
    14455
    I want to know if anyone knows of any really good books to learn these langauages as I am having problems understanding the book that I currently have on PHP. I am currently reading Sams Teach yourself PHP in 24 hours by Matt Zandstra. I am upto functions and he doesnt seem to explain things as clear or in plain english as I would like. I need a book that talks in plain english and is clear on what I am doing and how I am acheiving what I want to achieve from the language.

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    I was going to recommend something by Sams Publishing, too, probably even that specific book.

    What are you not understanding about functions?
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    Member KillaTeddyX's Avatar
    Join Date
    Dec 2006
    Posts
    81
    Member #
    14455
    Functions with optional arguments and requiring two arguments.

  5. #4
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    PHP Code:
    function foo($arg "something")
    {

    $arg is optional. [minicode]foo()[/minicode] will call the function, and $arg will be set to "something" because it's the default value. [minicode]foo("something else")[/minicode] will call it using the value "something else" in place of "something".

    Optional arguments must always be the last arguments in the list. Example of something illegal:
    PHP Code:
    function foo($something 32432432$another_argument
    ...because there's no way in the PHP syntax to call foo without specifying $something but with specifying $another_argument. foo(, 23987423) isn't legal.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 08:07 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com