Do you want to do this from php, or from the command line.
From the command line, it's quite easy:
pg_dump db1name -t tablename | psql db2name
From php, you'd have to create the new table to match it and move the data by hand.
While is some functionality provided by dblink() in the contrib files to help with connecting between databases, in postgresql, databases are entities apart from each other. You might want to look at using schemas instead of databases, since you CAN operate on different schemas within the same database about the same as you'd operate on different databases in MySQL...