The Artima Developer Community
Sponsored Link

PHP Buzz Forum
Exit and Die as Class Methods

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Pure-PHP

Posts: 20
Nickname: purephp
Registered: Mar, 2005

Pure-PHP is kind of Blog about PHP, and unconventional methodes to boost PHP-apps
Exit and Die as Class Methods Posted: Mar 19, 2005 1:16 AM
Reply to this message Reply

This post originated from an RSS feed registered with PHP Buzz by Pure-PHP.
Original Post: Exit and Die as Class Methods
Feed Title: Pure PHP - PHP unconventional
Feed URL: http://www.iran-fun.com/
Feed Description: Unconventional methodes to boost php apps
Latest PHP Buzz Posts
Latest PHP Buzz Posts by Pure-PHP
Latest Posts From Pure PHP - PHP unconventional

Advertisement

Recently I discovered, that you cannot use exit and die as class methodes. For example

<?php

class test{
    
public function exit(){
   }
}

?>

You well get a parser error. Well exit and die are php functions, but waht about time()?

<?php

class test2{
    
public function time(){
   }
}

?>

Has no parser error.

Read: Exit and Die as Class Methods

Topic: Database Portability (Part 3) Previous Topic   Next Topic Topic: PHP must free itself from Apache Server

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use