[pmwiki-devel] Markup -> ParseArg
Simon
nzskiwi at gmail.com
Sun Feb 6 18:01:52 PST 2022
Here is one idea
$opt = \ParseArgs(implode (' ', array_slice ($m, 1)));
but I'm hoping there is some helper function built in?
On Mon, 7 Feb 2022 at 14:56, Simon <nzskiwi at gmail.com> wrote:
> I'm looking for something like this
> $opt = \ParseArgs($m);
> (which doesn't return what I want)
> as parseargs() expects a string
>
> where $m is returned from the markup() function,
> and $opt is an array of the parameter names and values passed to a
> directive.
>
> Any ideas?
>
> tia
>
> Simon
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-devel/attachments/20220207/9a88fb09/attachment.html>
More information about the pmwiki-devel
mailing list