Compare length of two strings: Difference between revisions
Content added Content deleted
Line 1,432: | Line 1,432: | ||
abcd (length 4) |
abcd (length 4) |
||
</pre> |
</pre> |
||
=={{header|Phixmonti}}== |
|||
<syntaxhighlight lang="Phixmonti">/# Rosetta Code problem: http://rosettacode.org/wiki/Compare_length_of_two_strings |
|||
by Galileo, 10/2022 #/ |
|||
include ..\Utilitys.pmt |
|||
def getlen len swap 2 tolist enddef |
|||
( "abcd" "123456789" "abcdef" "1234567" ) getid getlen map |
|||
sort reverse lprint</syntaxhighlight> |
|||
{{out}} |
|||
<pre>[9, "123456789"][7, "1234567"][6, "abcdef"][4, "abcd"] |
|||
=== Press any key to exit ===</pre> |
|||
=={{header|PHP}}== |
=={{header|PHP}}== |