[prev] [index] [next]

PHP Output

PHP has several ways of printing to stdout
  • print Expr
    • prints string representation of value of Expr
  • echo Expr1,Expr2,...
    • evaluates/concatenates/prints all Expri
  • printf("format",Expr1,Expr1,...)
    • evaluates/prints Expri according to format
  • var_dump(Var)   and   print_r(Var)
    • show details of variables for deugging (var_dump has more details)