Perl Version of PHP’s “ucwords” Function
December 15th, 2009
1 comment
my $string = 'this is a string of text'; $string =~ s/\b(\w+)\b/ucfirst($1)/ge; print "$string\n";
my $string = 'this is a string of text'; $string =~ s/\b(\w+)\b/ucfirst($1)/ge; print "$string\n";
foreach($objectA as $k => $v) $objectB->$k = $v;
Besides the boilerplate at the top, here’s the least you need to add another database server to the dropdown list in PhpMyAdmin:
$i++;
$cfg['Servers'][$i]['auth_type'] = ‘cookie’;
$cfg['Servers'][$i]['host'] = ‘my.host.com’;
Writing to standard error in PHP:
fwrite(STDERR, “hello error string\n”);
Useful for standalone PHP scripts.
Recent Comments