php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #54331 Language construct functions
Submitted: 2011-03-21 08:58 UTC Modified: 2011-03-24 12:48 UTC
From: portalpress dot org at gmail dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: portalpress dot org at gmail dot com
New email:
PHP Version: OS:

 

 [2011-03-21 08:58 UTC] portalpress dot org at gmail dot com
Description:
------------
Many times I read 'this is a language construct and not a function', but there is no list of all the language constructs on php.net. Sometimes I need to use language constructs dynamically and I am sure, more people would like to see a complete list of the language constructs on php.net. For example, I have a timer function, which executes one function and after a while, with negative result, executes another. I had to make a pf_exit($exit_code) function as it is also a language construct http://nl2.php.net/manual/en/function.exit.php

Test script:
---------------
/* Example functions for language constructs */
function pf_exit($exit_code) {
   exit($exit_code);
}

function pf_echo($to_echo) {
   echo $to_echo;
}


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-03-21 09:44 UTC] aharvey@php.net
-Status: Open +Status: Bogus -Package: Website problem +Package: Documentation problem
 [2011-03-21 09:44 UTC] aharvey@php.net
I believe you're looking for
http://php.net/manual/en/reserved.keywords.php
 [2011-03-21 10:33 UTC] portalpress dot org at gmail dot com
Thanks A.Harvey, but I still feel, this is a documentation problem as there is no link to the reserved keywords whenever php.net uses the term language construct. I did a Google on 'language construct', not on 'reserved keywords', as I didn't know to search for that. It would not even be half an hour work to include a link to http://php.net/manual/en/reserved.keywords.php
at die() echo() empty() exit() eval() 
include() include_once() isset() list() require() 
require_once() return() print() and unset(). But again, thanks anyway.

Igor
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 04:00:01 2026 UTC