/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] Can someone tell me what these do in php forms? if ( ereg( "[rn]", $name )

Hi I need to know what these mean in my email form please. What is ereg? I know what the other variables are. Please let me know, thank you very much.

if ( ereg( “[rn]”, $name ) || ereg( “[rn]”, $email )

to post a comment
PHP

5 Comments(s)

Copy linkTweet thisAlerts:
@RiannaauthorNov 30.2006 — Forgot to say I already tried that. Didn't understand a word of it. Hope someone can tell me in simple terms. Thanks.
Copy linkTweet thisAlerts:
@NogDogNov 30.2006 — It's looking for carriage return ("r") and/or linefeed ("n") characters in either of the two variables.
Copy linkTweet thisAlerts:
@so_is_thisNov 30.2006 — It performs a Regular Expression match using the first argument as a pattern against the second argument string. If a match is found, a 1 is returned -- which is interpreted by the [B]if[/B] statement as a true result. If no match is found, a 0 is returned -- which is interpreted by the [B]if[/B] statment as a false result.
Copy linkTweet thisAlerts:
@RiannaauthorNov 30.2006 — Hmmmmm OK thanks a lot. I'll take it out and see if it fouls everything up.
×

Success!

Help @Rianna spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...