hi i'm trying to echo condition by given input but results are three times i want single result condition by given input : **hi here is the code please answer my question hi i'm trying to echo condition by given input but results are three times i want single result condition by given input **

    <?php
    $arrayName = array('bravo','alpha','jhony' );
    
    foreach ($arrayName as $key  ){
    	
    
    if(isset($_REQUEST['num1']) && $_REQUEST['num1']== $key   ){
     echo "yes". $_REQUEST['num1']. "Available";
    }
    else{
    	echo "Sorry!".$_REQUEST['num1']." is not available";
    }
    }
     ?>


    <form action="" method="get" accept-charset="utf-8">
    <input type="text" name="num1">
    <button type="submit">submit</button></form>

