Category Archives: MODX

Final Argument to getOption()

In an earlier article, I wrote about some of the finer points of the $modx->getOption() method. It occurred to me that I could do a better job of explaining how …

Tags: , , , | Posted under MODX, MODX | Leave a comment

Imploding an Associative Array

In the previous article, I said that implode() only works on simple, numeric arrays, but what if you want to do something similar with an associative array of keys and …

Tags: , , , | Posted under MODX, MODX | Leave a comment

Using implode() to Convert an Array to a String

If you’ve read the last two articles, you know how the explode() function works. The implode() function does just the opposite. It converts an array to a delimiter-separated string. In …

Tags: , , , | Posted under MODX, MODX | Leave a comment