Hi,
I want to get the values retrieved from the database start from 1 array index instead of 0

Array (-> [0] => 1 [1] => 2 [2] => 2 [3] => 2 [4] => 3 )

I want the array index that starts from 0 pointed with -> to start with 1 instead of 0 after running my query is this possible through mysql query.

Thanks in advance

Member Avatar for diafol
$myarray = array(1=>1,2,2,2,3);
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.