Dynadot โ€” .com Transfer

PHP Array Question/Problem

SpaceshipSpaceship
Watch

snike

Established Member
Impact
3
Let's say I had an array like this one:

fruit[0] = app
fruit[1] = bana
fruit[2] = lem
fruit[3] = oran

and i wanted to sort that to look like this:

$string = "0=app#1=bana .... etc.

How can I do this? Thanks in advance.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains โ€” AI StorefrontUnstoppable Domains โ€” AI Storefront
0
•••
It's:

asort($fruit);

then you can make the foreach to create your string...
:)
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back