how do I get a letter in variable?
Posted: Wed Aug 27, 2008 4:38 am
how do I get a message(header + body) in variable?
I need to write it in a folder "sent"
I need to write it in a folder "sent"
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$variable = 'Letter';
print substr($variable, 0, 1); // L
print substr($variable, 1, 1); // e
print substr($variable, -1); // rmarcth wrote:See http://ca3.php.net/manual/en/function.substr.phpCode: Select all
$variable = 'Letter'; print substr($variable, 0, 1); // L print substr($variable, 1, 1); // e print substr($variable, -1); // r