i am new to postgresql.previously i was using oracle and now i have planned to switchover to postgresql.
i want to know how binding is done here in postgre(assigning php variables for each and every column returned by a query)

$result =pg_exec($con, "select no from test");
$arr = pg_fetch_array($result,0);
----> ???? binding (bind , no , $number)???how to do this?
$num = pg_numrows($result);

can anyone please help.its very urgent