Failed to split PHP, depressed, and still working overtime debugging & nbsp; & nbsp; & nbsp;
$s = new SaeStorage();
$s->write('weixinfile','test1.txt',$keyword));
echo $keyword;
$keywordarry = explode(",",$keyword);
$s = new SaeStorage();
$s->write('weixinfile','test2.txt',count($keywordarry));
echo count($keywordarry);
Keywordis a serial number, and the input is policym03,qs16,123456789.pdf, but only one 4 is written into test1.txt.
But test2.txt is 2.
Where is the problem? I don't know where the problem is. All go crazy
Someone is not sleeping yet. please give me some guidance and help me solve the problem!
------ Solution --------------------
Echo $ keyword;
Echo count ($ keywordarry );
Are the values of the two statements normal?
If it is correct, there is a problem with the write of SaeStorage. Otherwise, there is a problem with keyword.
------ Solution --------------------
Paste the write () method and the content write is truncated.
------ Solution --------------------
I don't know what your write method does.
Paste it to see
------ Solution --------------------
Does SaeStorage generate entity files?
I have never used it. I should have never!
Otherwise, it is unnecessary for SAE to block the file operation function and construct a SaeStorage.
For the usage of SaeStorage, see http://apidoc.sinaapp.com/sae/SaeStorage.html