Voting

: nine minus eight?
(Example: nine)

The Note You're Voting On

jobowo
3 years ago
Note that when using the 'Use ($variable)' with preg_replace_callback, if you wish the value to be altered by the anonymous function, you must pass the value in by reference. eg preg_replace_callback($pattern, function($matches) use (&$alterThis) { $alterThis+=$something;},$string);

<< Back to user notes page

To Top