• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help me..

#1
someone help me.. i just stucked and cant get any idea how too do it.


Source array:
 

     ["data"] => array(10) {
         ["type"] => string(10) "controller"
         ["name"] => string(3) "eg1"
         ["description"] => string(5) "desc1"
         ["type2"] => string(8) "function"
         ["name2"] => string(2) "c2"
         ["controller2"] => string(4) "welcome"
         ["description2"] => string(6) "desc 2"
         ["type3"] => string(10) "controller"
         ["name3"] => string(2) "c3"
         ["description3"] => string(8) "c3 descr"
       }


from the above array how can i get new array like:

      array(
        array(
          'type' => 'controller',
          'name' => 'eg1',
          'description' => 'desc1'
        ),
         array(
          'type' => 'function',
          'controller' => 'welcome',
          'name' => 'c2',
          'description' => 'desc 2'
        ),
        array(
          'type' => 'controller',
          'name' => 'eg1',
          'description' => 'desc1'
        ),
        array(
          'type' => 'controller',
          'name' => 'c3',
          'description' => 'c3 descr'
        )
      );


data is submitted through a https://github.com/tristandenyer/Clone-s...ing-jQuery


thanks for help Shy
Reply


Messages In This Thread
Help me.. - by ngangchill - 01-04-2016, 01:51 PM
RE: Help me.. - by Diederik - 01-04-2016, 03:52 PM
RE: Help me.. - by Aendawan - 01-04-2016, 04:01 PM
RE: Help me.. - by PaulD - 01-05-2016, 06:50 AM
RE: Help me.. - by mr_pablo - 01-05-2016, 08:30 AM
RE: Help me.. - by ngangchill - 01-05-2016, 08:49 AM
RE: Help me.. - by PaulD - 01-05-2016, 08:57 AM
RE: Help me.. - by PaulD - 01-05-2016, 08:35 AM
RE: Help me.. - by mr_pablo - 01-05-2016, 08:43 AM
RE: Help me.. - by PaulD - 01-05-2016, 08:55 AM
RE: Help me.. - by includebeer - 01-09-2016, 09:41 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.