cast.test 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. Casts
  2. -----
  3. <?php
  4. (array) $a;
  5. (bool) $a;
  6. (boolean) $a;
  7. (real) $a;
  8. (double) $a;
  9. (float) $a;
  10. (int) $a;
  11. (integer) $a;
  12. (object) $a;
  13. (string) $a;
  14. (unset) $a;
  15. -----
  16. array(
  17. 0: Expr_Cast_Array(
  18. expr: Expr_Variable(
  19. name: a
  20. )
  21. )
  22. 1: Expr_Cast_Bool(
  23. expr: Expr_Variable(
  24. name: a
  25. )
  26. )
  27. 2: Expr_Cast_Bool(
  28. expr: Expr_Variable(
  29. name: a
  30. )
  31. )
  32. 3: Expr_Cast_Double(
  33. expr: Expr_Variable(
  34. name: a
  35. )
  36. )
  37. 4: Expr_Cast_Double(
  38. expr: Expr_Variable(
  39. name: a
  40. )
  41. )
  42. 5: Expr_Cast_Double(
  43. expr: Expr_Variable(
  44. name: a
  45. )
  46. )
  47. 6: Expr_Cast_Int(
  48. expr: Expr_Variable(
  49. name: a
  50. )
  51. )
  52. 7: Expr_Cast_Int(
  53. expr: Expr_Variable(
  54. name: a
  55. )
  56. )
  57. 8: Expr_Cast_Object(
  58. expr: Expr_Variable(
  59. name: a
  60. )
  61. )
  62. 9: Expr_Cast_String(
  63. expr: Expr_Variable(
  64. name: a
  65. )
  66. )
  67. 10: Expr_Cast_Unset(
  68. expr: Expr_Variable(
  69. name: a
  70. )
  71. )
  72. )