Answers for "php html text before first h2 tag"

PHP
0

php html text before first h2 tag

protected function firtsText(string $postContent): string {
        $explotion = explode("<h2>", $postContent);
        $firstText = $explotion[0];
  		return $explotion[0];
   }
Posted by: Guest on March-22-2022

Browse Popular Code Answers by Language