Object Pascal <-> PHP | Assignment

Object Pascal

:=

Description

var :=expression;
Used keywords: :=

Input

Examples

Object Pascal

Assignment the possible of use:
x := 1.234;         // x = 1.234
y := x * 3.14;      // y = 3.87476
if y<5 then
   y := y/ 3.14;    // y = 1.234
.
PHP

=

Description

var =expression;
Used keywords: =

Input


Output

Examples

PHP

Assignment the possible of use:
$x = 1.234;         // x = 1.234
$y = $x * 3.14;      // y = 3.87476
if ($y<5)
   $y = $y/ 3.14;    // y = 1.234
Languages: en hu cz sk