İlk temizlik tamamlandı bir önceki projeden
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
function deleteAfterR($input) {
|
||||
$pos = strpos($input, 'R'); // R karakterinin pozisyonunu bul
|
||||
if ($pos !== false) {
|
||||
// Eğer R karakteri bulunduysa, R karakterinden sonrasını sil
|
||||
$output = substr($input, 0, $pos);
|
||||
} else {
|
||||
// Eğer R karakteri bulunamazsa, input'u olduğu gibi döndür
|
||||
$output = $input;
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user