Language construct
Encyclopedia
A language construct is a syntactically
Syntax
In linguistics, syntax is the study of the principles and rules for constructing phrases and sentences in natural languages....

 allowable part of a program
Computer program
A computer program is a sequence of instructions written to perform a specified task with a computer. A computer requires programs to function, typically executing the program's instructions in a central processor. The program has an executable form that the computer can use directly to execute...

 that may be formed from one or more lexical tokens in accordance with the rules of a programming language
Programming language
A programming language is an artificial language designed to communicate instructions to a machine, particularly a computer. Programming languages can be used to create programs that control the behavior of a machine and/or to express algorithms precisely....

.

The term Language Constructs is often used as a synonym for control structure, and should not be confused with a function.

Examples of language constructs

In PHP
PHP
PHP is a general-purpose server-side scripting language originally designed for web development to produce dynamic web pages. For this purpose, PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document...

, for example, print is a language construct. According to http://www.php.net/manual/en/function.print.php

print 'Hello world';
?>


is the same as:


print('Hello world');
?>
The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK