Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
232 views
in Technique[技术] by (71.8m points)

PHP获取postgresql数据库BOLB字段

$a = pg_fetch_array($result, 0, PGSQL_ASSOC);

var_dump($a['productname']);

下面为输出结果:
string(286) "xe38090e4baace4b89ce8b685e5b882e38091e4b887e8b1a1efbc8857414e5849414e47efbc89533132504c203433304d4ce5ae9ee794a8e59586e58aa1e59e8be4bf9de6b8a9e69daf20e58f8ce5b182e88090e783ade58a9ee585ace6b0b4e69daf20e5b8a6e88cb6e6bc8fe6bba4e7bd91e6898be69f84e69dafe7a4bce79b92e8a38520e586b7e985b7e9bb91"

我该如何把它还原成字符串?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...