Deal with dynamic php variables


I have a page where it will get a POST submission with c names

1) The POST values can be infinite

2) I need the make sure what comes in the array should be in order












Teh code is

$cd_arr = [];


foreach($_POST as $k => $v){

if($k[0] == 'c' && is_numeric($k[1]) == TRUE){

$cd_arr[] = mysqli_real_escape_string($connect,$v);


The code is working but the order of the array is going to be wrong if c2 posted before c1 and so on

I want the array $cd_arr to contain the values in order as per c number even if the post is not in order.

Evner: HTML, PHP, Software Arkitektur

Se mere: define dynamic variable in php, php dynamic variable names in for loop, dynamic variable name php, how to get dynamic value in php, php dynamic array variable name, php 7 variables, php variable variables array, php string to variable, convert static web page dynamic php sql, modifying php variables, dynamic php scripts, dynamic php menu creator, build dynamic php website, menu dynamic php, form dynamic php state city, dynamic php quotation system, paypal sign button dynamic php, change title dynamic php, joomla dynamic php, php variables actionscript

Om arbejdsgiveren:
( 31 bedømmelser ) muscat, Oman

Projekt ID: #19601326

Tildelt til:


Hello! I have seen your project description. I will complete your project satisfactorily to your requirement. I can start work right away. I will be looking forward to hear from you. Thanks.

$10 USD på 1 dag
(12 bedømmelser)

38 freelancere byder i gennemsnit $27 på dette job


Hello? I have gone through the job details carefully and I am excited to start working on this project. I am ready to start work immediately. So I think I can help you if you want. Here are my working result for php, m Flere

$50 USD in 7 dage
(116 bedømmelser)

Hello Sir/Mam, MAKSOF is a team of highly qualified professionals who is dedicated in providing creative solutions and innovative ideas for your business with our skills in technologies and strategies. We have r Flere

$25 USD på 1 dag
(68 bedømmelser)

Yes, I can do this Loop using PHP. So do you need the working code from me or I need to add this code to your website?

$30 USD på 1 dag
(133 bedømmelser)

Hello, This is Fateema have 9+ years of software development experience with me in web development including PHP/Mysql/Javascipt/jQuery/JSON/Ajax/ Will do your Count change within 15 mins. Lets have a chat for fu Flere

$25 USD på 1 dag
(159 bedømmelser)

sir message me im php expert ... sir message me im php expert ... sir message me im php expert ... sir message me im php expert ...

$25 USD in 0 dage
(192 bedømmelser)

Hello! No problems, I can fix that for you. Ready when you are. Kind Regards, Dobri

$15 USD in 0 dage
(163 bedømmelser)

Hello, my name is Brendan. I have read your project specifications and this job fits within my area of expertise. I would love to come on board and work on this with you. I am available to begin immediately. Relevant Flere

$25 USD på 1 dag
(64 bedømmelser)

We have experience of Website in PHP, Laravel, CodeIgnitor, Wordpress, Opencart, Woocommerce . We also have experience of making Android,Window and iphone application with ionic & phonegap. Benefits in working with Flere

$20 USD på 1 dag
(110 bedømmelser)

ready to start work on it. I have 100+ reviews with all 5 stars and 12+ years experience. Looking forward from you soon Thank you

$25 USD på 1 dag
(86 bedømmelser)

Dear Sir. I am interested in your project. I'm senior PHP, SQL, Javascript developer. I assure, I will do my best to work with you on your project to present the best possible outcome for you and your customers. I w Flere

$30 USD på 1 dag
(78 bedømmelser)

Dear Client, Thank you for looking at my candidature. As per your given brief you are looking for a skilled developer, who can resolved "POST" variable related issues, i am glad to say that i have prior experience in Flere

$20 USD in 2 dage
(34 bedømmelser)

Hi, High talented Mobile and Web expert is here! I have graduated from National University of Singapore and received Master Degree there. As I am a professional Mobile app and Web developer, I can do your job perfectly Flere

$20 USD in 7 dage
(6 bedømmelser)

Hello, Greetings for the day. I am an experienced php developer and can provide you with quality work as per your requirements. Look forward to discuss further details. Thanks.

$25 USD på 1 dag
(20 bedømmelser)

Hi there, I can help you solve the issue with the variable order sorting. This can be done by sorting the post array keys. Lets discuss the issue in more detail. I work on front-end and back-end applications using Flere

$20 USD på 1 dag
(19 bedømmelser)

The skills and resources needed for this project are in my genes. We can assure you for a complete professional work in a given timeline. Please share the complete detail of your requirement. We have 8+ year experi Flere

$20 USD på 1 dag
(41 bedømmelser)

Hey! After reading over your application this looks like a perfect fit for my skills sets . My skill set includes:PHP (custom + core),CMS(WordPress,Joomla, Magento),Framework (Laravel,codeigniter, Bootstrap ,HTML5, Flere

$23 USD på 1 dag
(7 bedømmelser)

Hello, I have gone through the post and yes; I will help you for sure to design and develop a Website with clean design and clear responsiveness to all devices. As per your requirement, I would like to tell you that Flere

$15 USD på 1 dag
(12 bedømmelser)

Hello sir, Hope you are doing well. i have 6+ years of experience in WordPress php codeigniter html css mysql javascript bootstrap graphic design website design etc. these job suitable for me Kind Regards, pu Flere

$25 USD på 1 dag
(21 bedømmelser)

--------- PLEASE GIVE ME A CHANCE TO WORK ON YOUR PROJECT --------- Dear Sir / Madam, I am Eric from Rainsys. Rainsys is a Web & Software Development Company with 12 persons working together. We have 9+ years of ex Flere

$10 USD på 1 dag
(12 bedømmelser)

This type of problem can be easily solved with javascript ,i can modify like you can made any number of time and can change as well at user interface ,don't need to set it staticly.

$12 USD på 1 dag
(14 bedømmelser)