Paul on Nostr: Was pondering how to write a C implementation of a PHP function (explode - converts a ...
Was pondering how to write a C implementation of a PHP function (explode - converts a string into an array of strings based on a separator string). It took a while before I remembered that PHP itself is written in C, therefore a C implementation exists of all PHP standard library functions.
(I will still write my own, because it's a useful learning experience)
#php #c
Published at
2024-03-19 18:15:20Event JSON
{
"id": "a73d698aeb57a3b69e1f1f05ff815b39cbe8791748b75d568fc175360dc614cc",
"pubkey": "aebbe11c4358f6fe8a17bd121c86a972f38e8b1baac733b03eadd05f2c344e82",
"created_at": 1710872120,
"kind": 1,
"tags": [
[
"t",
"php"
],
[
"t",
"c"
],
[
"proxy",
"https://fosstodon.org/users/pwaring/statuses/112123715299054327",
"activitypub"
]
],
"content": "Was pondering how to write a C implementation of a PHP function (explode - converts a string into an array of strings based on a separator string). It took a while before I remembered that PHP itself is written in C, therefore a C implementation exists of all PHP standard library functions.\n\n(I will still write my own, because it's a useful learning experience)\n\n#php #c",
"sig": "cbd726a42a58215aaf22a6834dd4f24ce073c5b0a3b7bf587285dc248137d9810787d29f2b2711e7f9a77c7fd578841b4cc75e9a24fd9e58f022b649fe33bb77"
}