Object Pascal <-> PHP | Block statement

Object Pascal

begin end

Description

begin end;
begin statement end;
begin statement statement end;
Used keywords: end begin

Input

  • statement - code

Examples

Object Pascal

Block statement the possible of use:
y:=10;
if x>1 then
begin
  x:=1;
  y:=y-1;
end;
while y>1 do
begin
  inc(x);
  dec(y);
end;
.
PHP

{ }

Description

{}
{statement}
{statement statement}

Input

Examples

PHP

Block statement the possible of use:
$y=10;
if ($x>1)
{
  $x=1;
  $y=$y-1;
}
while ($y>1)
{
  $x++;
  $y--;
}
Languages: en hu cz sk