Method implodeField( $sSeparator, $sField )
Written by Hidalgo Emmanuel   

Description :

             Return a string containing a concatenation of the desired field.

Parameters :

             $sSeparator, string : Indicate the separator of concatenation
             $sField, string : Indicate the name of the field to be recovered

Value of return :

             Return a string containing a concatenation of the values of a field.


The following example recovers poster the names of the “users” according to their levels of authorization,
with a separation with points commas “; ”:

 

<?php 

//total instanciation 
include_once( 'phpsimpledb.class.php' );
Global 
$oBDD;
$oBDD = new PHPSIMPLEDB();

// recover a collection of “users” not validated
$oUsers_col $oBDD->getCollection"users" );
$oUsers_col->load"level = 2" );

// posting of the name separated by points commas “; ”
print( $oUsers_col->implodeField";""name" ) );
?>