betterCode() PHP 2025

Voting

: one plus five?
(Example: nine)

The Note You're Voting On

masterbassist
20 years ago
I think the following line (when building attachment information)

>>> "filename" => $parts[$i]->parameters[0]->value

needs to be

>>> "filename" => $parts[$i]->dparameters[0]->value

The first version generated a PHP warning under PHP 5.0.3. The second version actually gets the filename.

<< Back to user notes page

To Top