src/PN/Utils/General.php
/*
     * @version      : 1
     * @author       : Peter Soliman <peter.samy@gmail.com>
     * Description   : function to Convert Array of Objects to One dimentional array
     */
@version      : 1
@author       : Peter Soliman 
Description   : function to Convert Array of Objects to One dimentional array
@version : 1 @author : Peter Soliman Description : function to Convert Array of Objects to One dimentional array
public static function objectsToArr($objectsARR, $varName) {
        $arrayVarValues = array();
        foreach ($objectsARR as $object) {
            array_push($arrayVarValues, $object->$varName);
        }
        return $arrayVarValues;
    }
public static function objectsToArr ( $ objectsARR , $ varName ) { $ arrayVarValues = array ( ) ; foreach ( $ objectsARR as $ object ) { array_push ( $ arrayVarValues , $ object -> $ varName ) ; } return $ arrayVarValues ; }
@version      : 1
 @author       : Peter Soliman <peter.samy@gmail.com>
 Description   : function to Convert Array of Objects to One dimentional array
@version : 1 @author : Peter Soliman <peter . samy@gmail . com > Description : function to Convert Array of Objects to One dimentional array