Skip to content
Advertisement

Convert list into an array using php. How?

I have a function called listelements(), which outputs text like <li>text1</li><li>text2</li>.

I have more than 500 elements. Now I want to convert it into an array.

Can anyone help me? Thanks.

Note: I’m using php

Update:

The thing i want to achieve is alphabetical navigation. As of now my function displays links in list order. Instead of that i want to hold that in an array. Then i would like to filter them using characters.

JavaScript

When the user click “A” i would like to display only links start with A. Hope this explanation helps you guys for better understanding my question

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement