I am new to PHP,
And am creating a data string, which i have written like this.
$data = $product['id']. "/" . $product['name'] . "/" .$product['price'];
I don’t know if there is another better way to create this String.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
PHP can interpolate array values inside double quotes if they are surrounded with
{}:If you remove the quotes around the keys you don’t need the curly braces and it will become even simpler: