iSelfSchooling.com - Copyright © 1999-2007 iSelfSchooling.com  References  Job Openings  |  Secure Login
    Home  | Search more...  |  FREE Online VIDEO Oracle Training  |  Gift Store  |  Bookstore

   Unlimited access!   

    Oracle  Syntax  | Suggestions Your Contribution  |  FREE Legal Forms

 

Email2aFriend Homepage us! |  Bookmark   -  Copyright & User Agreement

Products/Services

 Vision/Mission

 Community Sharing

 Services

  Products

 Biography

 Contact Us

 FAQ

 Current News

 Website Traffic

 Bookstore

 FREE Training

 SQL

 PL/SQL

 Forms 

 Reports

 Other TOOLS

 Fundamentals

 Performance

 OEM

 Application Server

 Grid Control

 Articles

 Prepare for OCP

Oracle SYNTAX

 Oracle Functions

 Oracle Syntax

 Oracle 10g Syntax

  PL/SQL Syntax

UNIX and more...

 UNIX for DBAs

 LINUX for DBAs

 DB using PHP

  A+ Certification

 Basics of JAVA  

 Tips of  SEO

Finance/Jobs

 Financial Aid

 Skilled

 Oracle

 Jobs

  Magazine

More Training

 Q & Answers

 SQL-PL/SQL

 DBA

 Developer

 Important Notes

 Case Studies

 9i New Features

 10g New Features

 10g Qs/As

 Grid Control

 OracleAS # I

 OracleAS # II

  LDAP and OID

  HTTP Server

 Instructor-Led

  Virtual Hosts

 Community Sharing

More to know...

Acknowledgement**

 FREE Legal Forms

 Who is who

 Market Place

 University Directory

 Advisory Articles

 Links...

 

 

How to create and call a function in PHP that takes arguments or parameter?

More Resources by Google:

How to create and call a function in PHP that takes arguments or parameter?

The following is the syntax that creates a function:
function function_name ($arg1, $arg2, …) {
statement(s); // statements in the function

Return $variable;
}

// example of returning multiple values…
function function_name ($arg1, $arg2, …) {
statement(s); // statements in the function

Return array( $value1, $value2, …);
}


// example of using global variable…
// The global variable exists outside of the function, it
// also have the same value within the function.
function function_name ($arg1, $arg2, …) {
global $variable;
statement(s); // statements in the function

Return array( $value1, $value2, …);
}

The following is the syntax that calls a function:
function_name($variable1, $variable2, …);
-- or -- 
function_name(‘literal value1’, ‘literal value2’, …);
-- or --
function_name(‘mixed literals and variables’, $variable, …);

 

 

 
 
Google
 
Web web site