Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
smalyshev
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
2 ms
·
1.
▲
by
smalyshev
15y ago
$foo = $_POST['barf'] does not copy data.
2.
▲
by
smalyshev
15y ago
Unfortunately, these tips were written by somebody who does not understand how PHP works. See detailed critique of the previous version here: https://php100.wordpress.com/2009/06/26/php-performance-goog... The article may have changed s
3.
▲
by
smalyshev
15y ago
Both versions of the code do exactly the same: 1. Take description from memory 2. Allocate string and put the stripped version there 3. Output the string (here you might save if you don't use output buffering since no copying to the buffer