Coding standards :rolleyes:. As George Orwell put it when describing his guidelines of English usage: "break any of these rules sooner than say anything outright barbarous".
static $textDonate=null;
if(is_null($textDonate))
{
$textDonate = (build the string however you like).
}
The null test is so that the string is built once and once only (as is proper for a static var).
Of course, the real solution would be if PHP allowed arbitrary constant/static expressions in static declarations....