$content = preg_replace('%^\s*<ul>(.+)</ul>\s*$%sim', '\1', $menulist);
What is the meaning of first argument in the above function?
If I print $content I get the following categories as below:
Business
Accounting
Accounting For Leasing
Acqusition Disposition
Balance Sheet And Cash Flows
and so on....
Now Business is main category and Accounting is its subcategoy. Now I want to store them in array. How can I do that?