PHP
  Home arrow PHP arrow Page 5 - PHP 101 (part 5) - The Wonderland Fact...
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Moblin 
JMSL Numerical Library 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

PHP 101 (part 5) - The Wonderland Factor
By: Vikram Vaswani and Harish Kamath, (c) Melonfire
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 6
    2000-09-06

    Table of Contents:
  • PHP 101 (part 5) - The Wonderland Factor
  • So Who Are You, Anyway?
  • Graffiti For The Masses
  • Calling Godzilla
  • Q
  • Arguments And Responses
  • The Wonderland Factor

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    PHP 101 (part 5) - The Wonderland Factor - Q


    (Page 5 of 7 )

    How about an example?


    <html> <head> <basefont face=Arial> </head> <body> <?php function answer_yes() { echo "Yes!"; } function answer_no() { echo "No!"; } ?> Would you watch an Al Pacino movie without thinking twice? <br> <? answer_yes(); ?> <p> Does 2 + 2 equal 6? <br> <? answer_no(); ?> <p> Is this the coolest PHP tutorial on the planet? <br> <? answer_yes(); ?> </body> </html>
    And here's the output:

    Would you watch an Al Pacino movie without thinking twice? Yes! Does 2 + 2 equal 6? No! Is this the coolest PHP tutorial on the planet? Yes!
    You can also invoke a function before it's been defined.

    <html> <head> <basefont face=Arial> </head> <body> Would you watch an Al Pacino movie without thinking twice? <br> <? answer_yes(); ?> <p> Does 2 + 2 equal 6? <br> <? answer_no(); ?> <p> Is this the coolest PHP tutorial on the planet? <br> <? answer_yes(); ?> <?php function answer_yes() { echo "Yes!"; } function answer_no() { echo "No!"; } ?> </body> </html>

    More PHP Articles
    More By Vikram Vaswani and Harish Kamath, (c) Melonfire


     

       

    PHP ARTICLES

    - Validating Web Forms with the Code Igniter P...
    - Output Buffering
    - Paginating Database Records with the Code Ig...
    - HTTP Headers in Web Development
    - Project Management: Administration
    - Building a Database-Driven Application with ...
    - User Authentication for a Project Management...
    - Introduction to the CodeIgniter PHP Framework
    - Adding Users for a Project Management Applic...
    - Migrating Class Code for a MIME Email to PHP...
    - Login and Logout Authentication for a Projec...
    - Composing Messages in HTML for MIME Email wi...
    - Project Management: Authentication
    - A Better Way to Determine MIME Types for MIM...
    - Project Management Overview





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway