Apparently "explode" can be used instead.

On Wednesday, November 15, 2017 at 7:44:55 AM UTC-8, Billy wrote:
>
> Hello Tiddlers,
>
> I've got TiddlyWiki running on a server and saving it with the infamous 
> store.php file. It works great. But, I had to remove a few lines of code in 
> the store.php file to make it work. My server is using PHP 7 and split() 
> has been removed in this version of PHP. A replacement is preg_split(), but 
> I couldn't get that to work either. To experiment, I decided to see what 
> happens if I just remove this "get options" code. I went for it, and now 
> everything saves with no errors or warnings. 
>
> // get options
> foreach($optionArr as $o) {
> list($key, $value) = split('=', $o);
> $options[$key] = $value;
> }
>
> If this code is important, could anyone tell me how to code it properly 
> for PHP 7+ ? The error I get if I change split() to preg_split() is that 
> the delimiter is missing. 
>
> Thanks,
> Billy
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c5f744cc-dd13-4901-9b38-f0afbb5dc4e6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to