Hacker News new | ask | show | jobs
by jrockway 5481 days ago
So, are strings in PHP cstrings, or are they a length/address pair?
2 comments

Pascal-style, so size/address. Technically, strings don't need to be null-terminated, but many libraries expect they are so many are 'both' in a way.
length/address pair.
I see. Why is strlen such a hit then?
function call overheard. isset is a builtin.