<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>How to run JavaScript from PHP Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/how-to-run-javascript-from-php/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/how-to-run-javascript-from-php/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 21 Aug 2021 12:36:56 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>How to run JavaScript from PHP?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-run-javascript-from-php/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-run-javascript-from-php/#respond</comments>
		
		<dc:creator><![CDATA[Ashwani Kumar]]></dc:creator>
		<pubDate>Sat, 21 Aug 2021 12:31:14 +0000</pubDate>
				<category><![CDATA[php]]></category>
		<category><![CDATA[How to run JavaScript]]></category>
		<category><![CDATA[How to run JavaScript from PHP]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[JavaScript from PHP]]></category>
		<category><![CDATA[javascript in php]]></category>
		<category><![CDATA[Php]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=8156</guid>

					<description><![CDATA[<p>The client-side programming language is JavaScript, while the server-side scripting language is PHP. Client-side JavaScript is used to examine and [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-run-javascript-from-php/">How to run JavaScript from PHP?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">The client-side programming language is JavaScript, while the server-side scripting language is PHP. Client-side JavaScript is used to examine and verify client information, whereas server-side PHP is used to communicate with the database. HTML is used in PHP as a string in the code. We generate JavaScript code as a string in the PHP code to present it to the browser.</p>



<div class="wp-block-image"><figure class="aligncenter"><img decoding="async" src="https://i.stack.imgur.com/EZd5j.jpg" alt="From php to JavaScript - run function and to php again - Stack Overflow"/></figure></div>



<p class="wp-block-paragraph"><strong>Example 1:</strong> Write JavaScript code in PHP code</p>



<script src="https://gist.github.com/AdarshAshwani/42d35fbb0b8e3f9a22a4ac99f1f46e3f.js"></script>



<p class="wp-block-paragraph"><strong>Example 2:</strong> Write JavaScript code outside of PHP code (in same PHP file)</p>



<script src="https://gist.github.com/AdarshAshwani/12abfa3833782cd0eb49f911c875d587.js"></script>



<p class="wp-block-paragraph"><strong>Example 3:</strong> JavaScript Function – DOM Manipulation (in same PHP file)</p>



<script src="https://gist.github.com/AdarshAshwani/29b231eb9bc439e16fbbafdb010eb4fd.js"></script>



<p class="wp-block-paragraph"><strong>Output:</strong> </p>



<figure class="wp-block-image size-full"><img decoding="async" width="594" height="33" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-146.png" alt="" class="wp-image-8158" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-146.png 594w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2021/08/image-146-300x17.png 300w" sizes="(max-width: 594px) 100vw, 594px" /></figure>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-run-javascript-from-php/">How to run JavaScript from PHP?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-run-javascript-from-php/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
