Larry Garfield on Nostr: I just casually wrote this #PHP return array_values(array_filter(explode('/', ...
I just casually wrote this #PHP
return array_values(array_filter(explode('/', substr($fullPath, strlen($this->logicalPath)))));
This is why we need a pipe operator in PHP. (And PFA.) Because that is asinine.
Published at
2024-09-02 23:06:58Event JSON
{
"id": "01c04c40b3eaef664d7e322e65d16b1a3fc998177361b296154ca1bfc99ec5ba",
"pubkey": "e8201addc43dd2260f2fa3afd98a4568bd3ef7256f7173f7d444f6770340d26a",
"created_at": 1725318418,
"kind": 1,
"tags": [
[
"t",
"php"
],
[
"proxy",
"https://phpc.social/users/Crell/statuses/113070467875912282",
"activitypub"
]
],
"content": "I just casually wrote this #PHP \n\nreturn array_values(array_filter(explode('/', substr($fullPath, strlen($this-\u003elogicalPath)))));\n\nThis is why we need a pipe operator in PHP. (And PFA.) Because that is asinine.",
"sig": "86054d7e644228ae079bdfc3c323ea9f8cc9c69d1911b857dd26e2999dbf6b9f083d5df00a592f8c8086d901a6e248f35fa71ba2e7cfc25652f902f5edce11df"
}