Home and Learn: PHP Programming Course

The PHP char() function


Converts an ASCII value to its equivalent character. For example, the ASCII value 64 is the @ symbol on a UK keyboard. If you want to disguise your email address, you could do it like this:

$email_address = "me" . chr(64) . "me.com";

print $email_address;

<-- Back One Page | Move on to the Next Part -->

Back to the PHP Contents Page

Email us: enquiry at homeandlearn.co.uk