Jump to content

Compare length of two strings: Difference between revisions

Line 1,432:
abcd (length 4)
</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}}==
57

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.