Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So, are strings in PHP cstrings, or are they a length/address pair?


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: