Email Code help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
hhosurfer
Forum Newbie
Posts: 3
Joined: Wed Jul 29, 2009 6:04 am

Email Code help

Post by hhosurfer »

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
------------------------------------------
dejvos
Forum Contributor
Posts: 122
Joined: Tue Mar 10, 2009 8:40 am

Re: Email Code help

Post by dejvos »

// = comment -> rest of line after this will not be executed.
hhosurfer
Forum Newbie
Posts: 3
Joined: Wed Jul 29, 2009 6:04 am

Re: Email Code help

Post by hhosurfer »

So why is it there?
hhosurfer
Forum Newbie
Posts: 3
Joined: Wed Jul 29, 2009 6:04 am

Re: Email Code help

Post by hhosurfer »

anyone?
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: Email Code help

Post by jackpf »

How would we know? Ask whoever coded it.
Post Reply