Skip to content

Instantly share code, notes, and snippets.

@mehmetsarr
Created December 20, 2024 00:42
Show Gist options
  • Save mehmetsarr/032b4670110b76157be00f0c5a968147 to your computer and use it in GitHub Desktop.
Save mehmetsarr/032b4670110b76157be00f0c5a968147 to your computer and use it in GitHub Desktop.
Yazı Kısaltma PHP
<?php
$aciklama = esc($ilan['ilan_aciklama']);
$echo = mb_substr($aciklama, 0, 50, "UTF-8");
$devam = "...";
echo $echo.$devam;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment