I've been wooking with some strings in php to make my own framework... There's something that "bothers" me.
$var = "hello!";
$arr = array("h","e","l","l","o","!");
Can someone tell me which one ($var or $arr) uses more memory then the other one? And why?
At first sight I would say the array would use more memory since it has to position each character inside the array itself, but I'm not sure.