Код: Выделить всё
function createCustomDescription($string) {
$strArray = explode('.',$string);
$custom_desc = $strArray[0].'.';
$custom_desc .= $strArray[1].'.';
return htmlspecialchars($custom_desc);
}
Код: Выделить всё
function createCustomDescription($string) {
$strArray = explode('.',$string);
$custom_desc = $strArray[0].'.';
$custom_desc .= $strArray[1].'.';
return htmlspecialchars($custom_desc);
}