P
P
Pan Propan2015-05-02 14:19:16
Drupal
Pan Propan, 2015-05-02 14:19:16

What is the difference between render() and print()?

What is the difference between render() and print()?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
afi13, 2015-05-02
@afi13

The render() function in Drupal is used to render render arrays using drupal_render(). print() is not nominally a function, but a PHP language construct that prints a string to the screen. In fact, a complete analogue of echo, with the only difference - it always returns 1.

M
Maxim Grechushnikov, 2015-05-02
@maxyc_webber

Does PHP have a render function?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question