我有一个单一的PHP文档。
第一部分:服务器产生一些产出。
第二部分:使用服务器生成的产出并提交信息。
what i have done:
File Name: abc.php
<?php
//first part
based on the information here server generates some output say:
111 success: id:104.123/12345678 |value:10000045
//second part
i will be using the output generated in the first part.
what i have done is something like this
$server_said = file_get_contents( http://http://abc.php );
//abc.php is the file name
if (preg_match_all( /104.123:(d*)/ , $server_said, $matches))
//i want to display only 104.123/12345678 part
{
$input = $matches[1];
}
$xmlfile = <?xml version="1.0" encoding="UTF-8"?>
<identifier identifierType="id"> .$input. </identifier> ;
?>
错误:预期结果不以美元表示,只是停留在美元投入上。
如何做到这一点?
I am not sure about the code what i have written above might be wrong.