Jump to content

Ramcult

New Members
  • Posts

    4
  • Joined

  • Last visited

Ramcult's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. how to separate column in data array? For example, the step to separate the data in the hidden column becomes Hidden = True Hidden = False? ex: Hidden = Lorem, Dolor, Sed. Show = Ipsum, Sit, Amet. and then, initialize all $raw data to (a and b) ex: A = Hidden B = Show after that, retrieve data from (a and b) then (a and b) are sorted based on the data (a and b) ex: A = Dolor, Lorem, Sed B = Sit, Ipsum, Amet
  2. Sorry, im junior in PHP. would you like to explain with code for the condition, this array data have a Hidden:true(1,null) and Label: String. i need to regroup the data Hidden and Label first. ex logic result and the output: 1. Group Hidden and Show 2. $raw have (a,b) 3. a = Hidden -> A-Z into top b = Show -> Z-A into top Sort hidden into top with A-Z (ASC) Sort Show into bottom with Z-A (DESC) 1 = Hidden | ASC = Show | DESC 1 Amet 1 Consectetur 1 Ipsum 1 Lorem 1 Sed Adipiscing Dolor Elit Sit I don't know how to explain it with code. Can you help me to explain this with code?
  3. <?php $raw[] = array("hidden" => true, "label" => "Lorem"); $raw[] = array("hidden" => true, "label" => "Ipsum"); $raw[] = array("hidden" => false, "label" => "Dolor"); $raw[] = array("hidden" => false, "label" => "Sit"); $raw[] = array("hidden" => true, "label" => "Amet"); $raw[] = array("hidden" => true, "label" => "Consectetur"); $raw[] = array("hidden" => false, "label" => "Adipiscing"); $raw[] = array("hidden" => false, "label" => "Elit"); $raw[] = array("hidden" => true, "label" => "Sed"); print_r($raw); ?> Here is data array.. Help please. :)
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.