You’ve got to be kidding me.
//Set the sequence number
$squence_number = $values['insert_sequence'];
//If the sequence is less then 10 put a zero in front of the number.
if ($squence_number<10) {$squence_number = "0".$values['insert_sequence'];}
The //
indicates that line is a comment and they’re used when the code isn’t self-explanatory or obvious.
Regardless of “how” they’re to be used, developers leave comments for the next guy like this ALL THE TIME.
Let’s document code that’s ridiculously simple and leave code that’s ridiculously complicated undocumented.
Bonus points for → $squence_number
← 😍
I’m not sure if that’s a typo or the developer was trying to be fancy and save space or what.
Regardless × 2, he should be consistent with ['insert_sequence']
because consistency.
Add a comment
Post