SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: PHP Functions

  1. #1
    SitePoint Member
    Join Date
    Dec 2002
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Angry PHP Functions

    Could anyone explain to me how to declare a PHP function? Every time I try to use functions in PHP I get an error telling me that I have an undeclared function. I usually have to resort to a javascript function and pass the information I need via a hidden form field. I have SitePoints book Using PHP & MySQL, but I need an explanation on this. Thanks in advance. hradams

  2. #2
    SitePoint Evangelist
    Join Date
    Apr 2003
    Location
    Chicago, USA
    Posts
    417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function function_name ($param1, $param2...)
    {
       ...
    }


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •