Question: One of the following PHP code checks whether the content of the variable Slogin follows the following rules: it must start with alpha (from k-z)

 One of the following PHP code checks whether the content of

One of the following PHP code checks whether the content of the variable Slogin follows the following rules: it must start with alpha (from k-z) followed by any alphanumeric character and its length must be between 2-5 characters. It prints :error' message otherwise. * (2 Points) if (!preg_match('/^ [a-zA-Z0-91 (7][:alnum:)(2-5}$/". Slogin)) (print('

error

"); die(); } if (!preg_match('/^([K-ZK-Z] [:alnum:]){2,5}$/". Slogin)) (print("

error

); die0; } if (!preg_match("/([k-zK-Z] [:alnum:])[2.67". Slogin)) (print("

error

); die0:} if (!preg_match (/[a-zA-Z] (7}[:alnum:12-5}$/". Slogin) (print("

error

), die0;} if (!preg_match("/^([A-ZA-Z] [:alnum:]){3-6}$/", Slogin)) (print("

error

'); die0; } phonebook

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!