Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
C++
How to get all possible substrings
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="crimaniak, post: 4016090"] Something like this: $fullLength=strlen($string); for($begin=0;$begin<$fullLength;++$begin) for($l=$fullLength-$begin;$l>0;--$l) echo substr($string,$begin,$l)."\n"; [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
C++
How to get all possible substrings
Top