我想在字符串的末尾加上一个单引号我怎么能在 php 中做这件事?
$file = $this->form->getValue('doc');
$filename = $file->getOriginalName();
$file_name=$fn.'_'.md5($fiename);
$extension = $file->getExtension($file->getOriginalExtension());
我想在字符串的末尾加上一个单引号我怎么能在 php 中做这件事?
$file = $this->form->getValue('doc');
$filename = $file->getOriginalName();
$file_name=$fn.'_'.md5($fiename);
$extension = $file->getExtension($file->getOriginalExtension());
像这样试试
$file = $this->form->getValue('doc');
$filename = $file->getOriginalName();
$file_name=$fn.'_'.md5($filename); //There is no $fiename, so i changed it to $filename
$file_name=$file_name."'";//Concatenating here.
$extension = $file->getExtension($file->getOriginalExtension());
试试这个:
$file_name=$fn.'_'.md5($fiename).",";
在 php.
中用于连接。
试试这个
$file = $this->form->getValue('doc');
$filename = $file->getOriginalName();
$file_name=$fn.'_'.md5($fiename)."'";
$extension = $file->getExtension($file->getOriginalExtension());