3w PHP Your Source for PHP Source Code


Checking if string exist in array values

In  this sample, we create array with names for a group.
Then we check to see if a specific name is in the group...

Here is the sample.

// Array of names in group
$array = array('Sam' , 'Louis' , 'Samentha' , 'Joe');
if (in_array('Joe',$array))
	echo 'Joe is in group...';

Thank you and please, do not hesitate to comment.

Filed under: General, PHP Basics 2 Comments

Ask a programmer php question

Here you can use the comments to ask the programmer any question you wish regarding PHP, MySql, HTML, CSS, etc...
he programmer will then answer your question in another post, and reply to your comment here, so you will get an email notification.

Enjoy learning.
Manny E.
3wPHP Staff.

Filed under: General, PHP Basics 1 Comment

Welcome to 3wPHP.com!

Welcome to 3wPHP.com. This is our first post. We will be posting some code soon.

echo 'Welcome' ;

Thank you
Manny E.
3wphp staff.

Filed under: General 1 Comment