myspace : owned

We may earn a small commission from affiliate links and paid advertisements. Terms

indexOf is just an array grabber method....

for example, checking if an @ sign is in an email address string...

if(str_email.indexOf( "@")1 ) { alert("true y0!"); }
else
{alert("doh!")}
 
Quoted post[/post]]
indexOf is just an array grabber method....

for example, checking if an @ sign is in an email address string...

if(str_email.indexOf( "@")1 ) { alert("true y0!"); }
else
{alert("doh!")}
I understand what they do, ( i rip open nitto1320's game all the time and they are all over in there) and
I'm sure i could learn the indexOf, but i use perl..
whereas
if ($str =~ '@'){
print "yes";
} else {
print "no";
}
and anything i need to figure out i do, i just don't NEED to :)
 
i wish i stuck with this shit back in middle skool. i just knew basic html shit but its gotten so advanced id need like three script writing for dummies books and id stilll be lost. but thats def where the money is nowadays.
 
Back
Top