Hi! Could we please enable some services and cookies to improve your experience and our website?
Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code
<?php
$string = "Hello, World, It's Me";
if (mb_strlen($string) < 15){
die("ok1");
$string = str_replace(["a", "e", "i", "o", "u", "A", "E", "I", "O", "U"], "", $string);
};
if($string < 15){
die("ok2");
};
if(mb_strlen($string) > 15){
$string = (mb_substr($string, 0, 14));
die("ok3");
};