PHP型変換の世界

2,437 views
2,364 views

Published on

http://events.php.gr.jp/event.php/event_show/31

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,437
On SlideShare
0
From Embeds
0
Number of Embeds
39
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

PHP型変換の世界

  1. 1. ^ 3+3 [ ( GLGLBRJL
  2. 2. AA y Z^ = yGKDWHQDQHMSLBRJL
  3. 3. quot; Z^] a WR ^[ y
  4. 4. LGDPDFKDQJ V 76KLUWV DW :(%Г'% 7HFK 0HHWLQJ SKRWR E
  5. 5. ^Z Z 3+3
  6. 6. PZ ^Z y 3+3
  7. 7. === y |VWU| Y [ var_dump(0 == quot;strquot;) true [^ y
  8. 8. R 3+3 Z ^ [ y R Z=, y A ] Z ^
  9. 9. y3+3 ] =[^ . ^ ][ y] mZ ZA AA
  10. 10. [[
  11. 11. [Z = [ y - ^ [ yJHWWSH YDUBGXPS R Z^ ^^ y []__` y[
  12. 12. 3+3 B [ `_c [ y _ ERROHDQ y y LQWHJHU =GRXEOH yIORDW VWULQJ y
  13. 13. 3+3 B [ ! [ y y DUUD y_ ` a REMHFW [ y yc` ` UHVRXUFH yac 18//
  14. 14. [Z ^^ y( [ F _ `a y y1) [ Z R y y[_ `a yVHWWSH [ ^Z
  15. 15. ^ [Z [ y quot;1quot; + quot;2quot; === 3 A ^Z [ y 1 . 2 === quot;12quot;
  16. 16. [Z y quot;abcquot; quot;defquot; === true Z [Z y (123 == quot;123quot;) === true
  17. 17. =
  18. 18. 18// var_dump(NULL 1) true var_dump(NULL -1) true var_dump(NULL 0) false var_dump(NULL 0) false var_dump(NULL == 0) true yB Z Y
  19. 19. ZZ [ = y 18// ^=)$/6( 758( ERRO ^^ __ `a ^^^ )$/6( ^=] y =)$/6( )$/6( ^
  20. 20. 18// var_dump(NULL quot;1quot;) true var_dump(NULL quot;-1quot;) true var_dump(NULL quot;0quot;) true var_dump(NULL == quot;quot;) true ^ Z y 18// ^^ ^
  21. 21. ZZ =18//Z y 18// ^ ^^= c c Z6] c c =D Z _ y LVBQXPHULF Z WUXH Z _ =[^
  22. 22. var_dump(quot;abcquot; array()) true
  23. 23. cc
  24. 24. = Z = y[^ ^Z Z ^
  25. 25. [
  26. 26. = _ y ORQJ y y y [ ;)) y IORDW y yH ( ` [ y LQW
  27. 27. Z _ y YDUBGXPS WUXH YDUBGXPS WUXH YDUBGXPS H ( WUXH y ! YDUBGXPS IDOVH YDUBGXPS WUXH
  28. 28. Z _ y@ YDUBGXPS [ [ y YDUBGXPS [ Г YDUBGXPS [ WUXH R _ `a y YDUBGXPS LQW [
  29. 29. [Z YDUBGXPS LQW [ y ][ a Z= Z = _ ^ =_ `a y [ a % ^
  30. 30. [Z var_dump(2.0e3) float(2000) var_dump(quot;2.0e3quot;+0) float(2000) var_dump((int)2.0e3) int(2000) var_dump((int)quot;2.0e3quot;) int(2) var_dump((float)quot;2.0e3quot;) float(2000)
  31. 31. 2 `a LQW_ y2 Z ! ^ ] y ([FHO $FFHVVZ _ `b a [ c Z Z
  32. 32. Z _ y LVBQXPHULFBVWULQJ static inline zend_uchar is_numeric_string( const char *str, int length, long *lval, double *dval, int allow_errors ) y = = ^
  33. 33. ]Z Z y y6 ! YDUBGXPS ; y yORQJ [ yGRXEOH H ORQJ ! y
  34. 34. y! yORQJ @ VWUWRO yGRXEOH ]HQGBVWUWRG Z ORQJ = y VWUWRO Z
  35. 35. VWUWRO =QSWU y VWUWRO = EDVH B * ORQJ LQW ^= EDVH Z ] _ 6 = y Z Z=][ Y Г Z PZ =
  36. 36. VWUWRO ORQJ LQW y ^^Z=B Z^[ # ^= y = DEF
  37. 37. ] === y YDUBGXPS D y YDUBGXPS [5 3DUVH HUURU VQWD[ HUURU XQH[SHFWHG 7B675,1* y YDUBGXPS LQW ] = y = #
  38. 38. [ y RSHUDWRU H[WHQVLRQ _bc _ ca
  39. 39. Z ][

×