How to pass a variable by value in wordpress?



How to pass a variable by value in wordpress?..

Answer / Naresh Singh

In WordPress, you can pass variables by value using PHP's standard variable passing methods. For example: <?php $var = 123; ?> Then use the variable anywhere in your code like: <?php echo $var; ?>

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More WordPress Interview Questions

What are magic methods and how are they used in php?

1 Answers  


Is wordpress blog free?

1 Answers  


Where is the wordpress content stored?

1 Answers  


How do I clean my wordpress website?

1 Answers  


What are custom fields in wordpress?

1 Answers  


Tell me can we host wordpress using amazon web services such as ec2, rds, ebs etc?

1 Answers  


Can you download a wordpress website?

1 Answers  


Where are posts saved in wordpress?

1 Answers  


How many sites are hacked every day?

1 Answers  


What may be the reason that widgets won’t display in the sidebar?

1 Answers  


Do you need a host for wordpress?

1 Answers  


What is the basic difference between posts vs. Pages?

1 Answers  


Categories