extract info from php