Y
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
roel_v
5481 days ago
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.
link
pbiggar
5481 days ago
length/address pair.
link
jrockway
5481 days ago
I see. Why is strlen such a hit then?
link
pbiggar
5481 days ago
function call overheard. isset is a builtin.
link