Sorry all I have just begun to understand some of php coding and need a quick answer. While digging into my companies website I read a code in the PHP send email script. I know $recipients= is who gets that email. but what does the //" mean. is that a carbon copy? Need help. As follows:
<?php
$recipients = "someone@email.com,someonceelse@email.net";
//"friend@zmail.com,friend2@zmail.com,someoneelse@email.net"
/*function valid_email($email){
if(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", trim($email)))
return 0;
else
return 1;
}
/process submission
------------------------------------------
Email Code help
Moderator: General Moderators
Re: Email Code help
// = comment -> rest of line after this will not be executed.
Re: Email Code help
So why is it there?
Re: Email Code help
How would we know? Ask whoever coded it.