Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

concat in .php

Posted on 2016-09-12
3
Medium Priority
?
81 Views
Last Modified: 2016-09-12
i have this

echo "<td width='30%'>$results[CCDDESART]</td>";

this is the result: COLORANTE PARA PET GRADO BOTELLA COLOR PLATA 472-10029-1 (EX LN-539)

i have this variable: $results[UNIDAD]
i need concat COLORANTE PARA PET GRADO BOTELLA COLOR PLATA 472-10029-1 (EX LN-539).
with
La unidad de medida es: $results[UNIDAD]
0
Comment
Question by:enrique_aeo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
Dillyn Barber earned 2000 total points
ID: 41795260
Try something like $result = $data1 . ' ' . $data2; It's very hard to tell without seeing all of your code.
0
 

Author Comment

by:enrique_aeo
ID: 41795280
i can not work

echo "<td width='30%'>".$results[CCDDESART]. ' LA UNIDAD DE MEDIDA ES: ' . $results[UNIDAD]</td>";
0
 

Author Comment

by:enrique_aeo
ID: 41795283
echo "<td width='30%'>".$results[CCDDESART]. ' LA UNIDAD DE MEDIDA ES: ' . $results[UNIDAD]."</td>";
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question