memory - php type casting usability for minimization -


is there difference in php 5.* between

 1.  $variable = (int) 1111; 

vs.

 2.  $variable = '1111'; 

in terms of physical resources eg. memory usage.

please ideas.

if take consideration following page says:

it should clear structures above variable can of 1 type, variable data represented appropriate field in zval_value union.

that means answer question is: yes. there difference in amount of memory used based on variable really represented internally.

the comments under question tackling other issues, such viability etc. refrain dealing that.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -