note 127061 added to function.count-chars
| From: | sagargurnani99 at gmail dot com | Date: | Sun, 15 May 2022 15:20:05 +0000 |
| Subject: | note 127061 added to function.count-chars | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-218391@lists.php.net to get a copy of this message | ||
We can also use this function to get all unique characters in a string arranged alphabetically.
<?php
function longest($a, $b) {
$a = 'lkjonmdmgc';
return count_chars($a, 3); // Output = 'cdgjklmno'
}
?>
----
Server IP: 45.112.84.4
Probable Submitter: 185.85.3.47 (proxied: 51.132.26.226)
----
Manual Page -- https://php.net/manual/en/function.count-chars.php
Edit -- https://main.php.net/note/edit/127061
Del: integrated -- https://main.php.net/note/delete/127061/integrated
Del: useless -- https://main.php.net/note/delete/127061/useless
Del: bad code -- https://main.php.net/note/delete/127061/bad+code
Del: spam -- https://main.php.net/note/delete/127061/spam
Del: non-english -- https://main.php.net/note/delete/127061/non-english
Del: in docs -- https://main.php.net/note/delete/127061/in+docs
Del: other reasons-- https://main.php.net/note/delete/127061
Reject -- https://main.php.net/note/reject/127061
Search -- https://main.php.net/manage/user-notes.php