Wednesday, 18 September 2013

reference type and primitive type like in JavaScript but in PHP

reference type and primitive type like in JavaScript but in PHP

You know how in javascript it's
var firstVar = 'hello'; // 'hello'
var secondVar = firstVar; // 'hello'
firstVar = 'hi'; // 'hi'
secondVar // 'hello'
Can I do this in php or not?

No comments:

Post a Comment