Be gentle, because I'm trying to learn a few things here about working with php.
I have some javascript that I'm trying to transcode for php and obviously I don't know all the syntax variations because I keep breaking it. Can somebody show me how to convert this simple "for" loop to php syntax?
Code:
for (var i=0; i<originalval.length; i++){
newval[newval.length]=originalval.charCodeAt(i)
newval="["+newval.join(",")+"]"
}