Title: sysins's Replies | WordPress.org

---

# sysins

  [  ](https://wordpress.org/support/users/sysins/)

 *   [Profile](https://wordpress.org/support/users/sysins/)
 *   [Topics Started](https://wordpress.org/support/users/sysins/topics/)
 *   [Replies Created](https://wordpress.org/support/users/sysins/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/sysins/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/sysins/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/sysins/engagements/)
 *   [Favorites](https://wordpress.org/support/users/sysins/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Retrieving value from a multidimensional array](https://wordpress.org/support/topic/retrieving-value-from-a-multidimensional-array/)
 *  Thread Starter [sysins](https://wordpress.org/support/users/sysins/)
 * (@sysins)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/retrieving-value-from-a-multidimensional-array/#post-3605101)
 * Makes sense, thanks again.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Retrieving value from a multidimensional array](https://wordpress.org/support/topic/retrieving-value-from-a-multidimensional-array/)
 *  Thread Starter [sysins](https://wordpress.org/support/users/sysins/)
 * (@sysins)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/retrieving-value-from-a-multidimensional-array/#post-3605066)
 * **bcworkz** You my friend are a **legend!!!!**
 * Thank you very much. That worked for me.
 * I am interested now though how to return a friendlier array in the first place
   as you suggested.
 * I’m currently calling the data using
 * `$main_array = get_option('_s_membership_pricing_rules');` from the wp_options
   table in the database.
 * The Raw data looks like this: [http://pastebin.com/iTiaQDmi](http://pastebin.com/iTiaQDmi)
 * For anyone else who might be interested and stuck. This code is to get the logged
   in user and the percentage discount applied to it using woocommerce dynamic pricing
   plugin role based discounts. There may be an easier way to do it but I haven’t
   found it as yet but this code worked for me.
 * Full code here: [http://pastebin.com/wf3aZbs3](http://pastebin.com/wf3aZbs3)

Viewing 2 replies - 1 through 2 (of 2 total)