they're just functions
function your_function($arg1,$arg2){
echo $arg1;
echo $arg2;
}
-Original Message-
From: Chris Herring [mailto:[EMAIL PROTECTED]]
Sent: Sunday, September 30, 2001 2:08 AM
To: php list
Subject: Re: [PHP] Subroutines
My bad, http://www.b00
My bad, http://www.b000.net/code/
- Original Message -
From: "Chris Herring" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Sunday, September 30, 2001 1:07 AM
Subject: [PHP] Subroutines
I've looked through the manual (or at least searched) for subroutines, and I
can't find
<[EMAIL PROTECTED]> wrote:
> As a new PHP convert, I ran into this same problem (below) yesterday while
> designing a form. ASP programmers (if they're THINKING) will use subs to
> keep "if" blocks tidy. In ASP, I'd use something like:
>
> If Request.ServerVariables( "REQUEST_METHOD" ) = "GET" T
box contains arbitrary codes that allow me to generate the
appropriate email address on the fly.
Hope my experience will be helpful to other noobies making the Big
Transition.
Best regards,
Bill
-Original Message-
From: Christian Reiniger [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09
On Wednesday 08 August 2001 01:37, CGI GUY wrote:
> How does PHP compensate for an apparent lack of
> traditional subroutines (as with Perl, etc.)? It seems
> like I'm going to have to script separate pages for
> ea. set of processes in my search (i.e., print FORM,
> print results for SEARCH,
> pr
Jason pretty well suggested what to use.
PHP scripts with a lot of logic in them usually have all the function
definitions and logic at the top of the script and the display stuff at the
end. Again, as I'm always recommending, have a look at Julie Meloni's
Thickbook tutorials, particularly the
> How does PHP compensate for an apparent lack of
> traditional subroutines (as with Perl, etc.)? It seems
> like I'm going to have to script separate pages for
> ea. set of processes in my search (i.e., print FORM,
> print results for SEARCH,
> print DETAILS, etc.). Please tell me I'm mistaken!
7 matches
Mail list logo