Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

236
Views
¿Cómo agregar un espacio de línea siguiente (/r/n) en la declaración php printf?

Cómo agregar \r\n junto a la salida: <div>%s ► %s</div>

por ejemplo

 First output \r\n Second output

en:

printf("<div>%s ► %s</div>", $r['bla-bla'], $r['bla-bla']);

Lo he intentado como:" <div>%s ► %s</div>\r\n " pero no funciona.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Prueba PHP_EOL como:

 <?php printf("first line" . PHP_EOL . "SECOND line");

Ver también ¿Cuándo uso la constante de PHP “ PHP_EOL ”?

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!