Beruflich Dokumente
Kultur Dokumente
ON DEVELOPING WEB
APPLICATIONS WITH PHP PART 2
types
Arrays
Perl-like syntax
same as
$arr[foo] = bar;
$arr[12] = true;
Arrays (cont.)
<?php
$arr = array("somearray" => array(6 => 5, 13 => 9,
"a" => 42));
?>
echo $arr["somearray"][6]; // 5
echo $arr["somearray"][13]; // 9
echo $arr["somearray"]["a"]; // 42
Slow
Functions can not easily change object variables
Statements
if, if/elseif
Switch/case
for, while, and do/while loops
Include and require statements for code reuse
BUILT-IN FUNCTIONS
Manipulator Functions
CCVS:
BUILT-IN FUNCTIONS
Platform independent
Error
Functions
Handling Functions
Filesystem
Functions
BUILT-IN FUNCTIONS
LDAP
Functions
Functions
Functions
BUILT-IN FUNCTIONS
Functions
BUILT-IN FUNCTIONS
Functions (cont.)
MySQL
Oracle
PostgreSQL
SQL Server
MING
Macromedia Flash
BUILT-IN FUNCTIONS
Functions
Regular
Expression Functions
Semaphore
Session
Management Functions
Code Portability
The
Code Portability
Coding
Prototype
Turn
Turn
Debugging
Feature:
Undocumented
language
Debugging
Use
Development Tools
Color
coding editors
IDEs
Windows
Macromedia Dreamweaver
Allaire Homesite
Zends PHPEdit
Linux
???
PHP 5
Release Date
???
Features
Complete
objects
RESOURCES
PHP Downloads and Online Documentation
www.php.net
Community
www.phpbuilder.com: articles on PHP, discussion forums
www.phpresourceindex.com: over 1,000 PHP scripts
www.phpvolcano.com: PHP 5 information
Newsgroups
comp.lang.php
QUESTIONS?
Any
Questions
www.php.net
Community
Newsgroups
comp.lang.php