<?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>dharmendra, Author at Artificial Intelligence</title>
	<atom:link href="https://www.aiuniverse.xyz/author/dharmendra/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.aiuniverse.xyz/author/dharmendra/</link>
	<description>Exploring the universe of Intelligence</description>
	<lastBuildDate>Wed, 16 Mar 2022 05:43:33 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>PHP Tutorial For Beginners Step By Step With Example Session-1</title>
		<link>https://www.aiuniverse.xyz/php-tutorial-for-beginners-step-by-step-with-example-secession-1/</link>
					<comments>https://www.aiuniverse.xyz/php-tutorial-for-beginners-step-by-step-with-example-secession-1/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra]]></dc:creator>
		<pubDate>Wed, 05 Jan 2022 12:38:51 +0000</pubDate>
				<category><![CDATA[php]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Environment]]></category>
		<category><![CDATA[Internal Data]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Structure]]></category>
		<category><![CDATA[variable]]></category>
		<category><![CDATA[Variable Initialization]]></category>
		<category><![CDATA[web Server]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=15624</guid>

					<description><![CDATA[<p>What is PHP PHP is Open Source server-side programming / Scripting language that is especially suited for web development and can be embedded into HTML. PHP stands <a class="read-more-link" href="https://www.aiuniverse.xyz/php-tutorial-for-beginners-step-by-step-with-example-secession-1/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/php-tutorial-for-beginners-step-by-step-with-example-secession-1/">PHP Tutorial For Beginners Step By Step With Example Session-1</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading"><strong>What is PHP</strong></h1>



<p>PHP is Open Source server-side programming / Scripting language that is especially suited for web development and can be embedded into HTML.</p>



<p>PHP stands for Hypertext Preprocessor but it’s original name, Personal Home Page. It was created by Ramsum Lerdorf in 1994.</p>



<p>PHP runs on various platforms Windows, Linux, Unix, Mac OS X, etc.</p>



<p>PHP is compatible with almost all servers Apache, IIS, etc.</p>



<p>At Present in 2017 Php 7.2.0 is latest version of PHP</p>



<p>PHP File Extension .php</p>



<h1 class="wp-block-heading"><strong>What we can do with PHP</strong></h1>



<ul class="wp-block-list"><li>Generate Dynamic Page</li><li>Handle button clicks, radio button</li><li>Create Database Application</li><li>Client/server Application</li><li>Student Registration</li><li>Online Course</li><li>Online Shopping cart</li><li>Chat Rooms</li></ul>



<h1 class="wp-block-heading"><strong>Example</strong></h1>



<script src="https://gist.github.com/dharmu9898/7608a2d732e79bccb7d4dfa3ab3d7dee.js"></script>



<h1 class="wp-block-heading"><strong>How PHP Works</strong></h1>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="884" height="423" src="https://www.aiuniverse.xyz/wp-content/uploads/2022/01/Work-for-php.jpg" alt="" class="wp-image-15626" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2022/01/Work-for-php.jpg 884w, https://www.aiuniverse.xyz/wp-content/uploads/2022/01/Work-for-php-300x144.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2022/01/Work-for-php-768x367.jpg 768w" sizes="(max-width: 884px) 100vw, 884px" /></figure>



<h1 class="wp-block-heading"><strong>Development Environment</strong></h1>



<ul class="wp-block-list"><li>Operating System – Windows, Linux, Mac etc.</li><li>Web Server – XAMP, WAMP, MAMP etc.<ul><li>§XAMP – Apache + MariaDB + PHP + Perl</li></ul></li></ul>



<ul class="wp-block-list"><li>Editor/IDE – NotePad, NotePad ++, NetBeans, Brackets, Eclipse etc.</li><li>Web Browser – Chrome, Firefox etc.</li></ul>



<h1 class="wp-block-heading"><strong>Basic Structure of PHP</strong></h1>



<figure class="wp-block-image size-full"><img decoding="async" width="905" height="338" src="https://www.aiuniverse.xyz/wp-content/uploads/2022/01/structure.jpg" alt="" class="wp-image-15627" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2022/01/structure.jpg 905w, https://www.aiuniverse.xyz/wp-content/uploads/2022/01/structure-300x112.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2022/01/structure-768x287.jpg 768w" sizes="(max-width: 905px) 100vw, 905px" /></figure>



<h1 class="wp-block-heading"><strong>Basic Structure of PHP</strong></h1>



<script src="https://gist.github.com/dharmu9898/486ed97281f2f20193510bc665ab686c.js"></script>



<h1 class="wp-block-heading"><strong>Variable</strong></h1>



<p>Variables are containers which is used to store information.</p>



<h2 class="wp-block-heading">Type of Variables: &#8211;</h2>



<ul class="wp-block-list"><li>Local Variable</li><li>Global Variable</li><li>Static Variable</li></ul>



<h1 class="wp-block-heading"><strong>Variable Declaration</strong></h1>



<p><strong>In PHP, variable names begin with $ sign, followed by a name.</strong></p>



<p><strong>Ex: &#8211;</strong></p>



<ul class="wp-block-list"><li>$roll</li><li>$price</li><li>$name</li></ul>



<h1 class="wp-block-heading"><strong>Rules</strong></h1>



<ul class="wp-block-list"><li>Variable starts with $ sign.</li><li>Variable name only starts with a letter, an underscore ( _ ).</li><li>Variable name cannot start with a number.</li><li>It is case sensitive which implies that the variable <strong>num</strong> in lowercase is different from variable <strong>NUM</strong> in uppercase.</li><li>Do not use Predefined constant name e.g. PHP_VERSION , PHP_OS etc.</li><li>Do not use reserved keywords. e.g. else, if etc.</li></ul>



<h1 class="wp-block-heading"><strong>Variable Initialization</strong></h1>



<p>PHP can store all type of data in variables. Before using a variable in PHP, assign a value to it so PHP will create that variable and store data in it. That means we have to assign data to a variable before attempting to read a variable’s value.</p>



<h1 class="wp-block-heading">Ex: &#8211;</h1>



<ul class="wp-block-list"><li>$roll = 256;</li><li>$price = 25.50;</li><li>$name = “Geeky Shows”;</li></ul>



<p>Note &#8211; If a variable is created without a value, it is automatically assigned a value of NULL.</p>



<h1 class="wp-block-heading"><strong>Internal Data Types</strong></h1>



<p>In other language, you need to specify the exact data format of each variable, but PHP handles that for you.</p>



<ul class="wp-block-list"><li>Integer – It can hold whole number. Ex: 12, 0, -34 etc.</li><li>Float/Double – It can hold floating point number. Ex: 25.2654, 2.12 etc.</li><li>String – It can hold text or group of characters. Ex: &#8211; “Geeky Shows” etc.</li><li>Boolean – It can hold true/false value.</li><li>Array – It can hold multiple values in one single variable.</li><li>Object – It can hold programming objects.</li><li>Resource – It is special variable that hold references to resources external to PHP.</li><li>NULL – It can hold only one value – NULL .</li></ul>
<p>The post <a href="https://www.aiuniverse.xyz/php-tutorial-for-beginners-step-by-step-with-example-secession-1/">PHP Tutorial For Beginners Step By Step With Example Session-1</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/php-tutorial-for-beginners-step-by-step-with-example-secession-1/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Execution failed for task&#8217;:app:processDebugGoogleServices&#8217;.&gt; No matching client found for package name&#8217;com.cotocus.holidaylandmark.publisher.holidaylandmark_publisher&#8217;   android studio-SOLVED</title>
		<link>https://www.aiuniverse.xyz/execution-failed-for-taskappprocessdebuggoogleservices-no-matching-client-found-for-package-namecom-cotocus-holidaylandmark-publisher-holidaylandmark_publisher-android-studio-solved/</link>
					<comments>https://www.aiuniverse.xyz/execution-failed-for-taskappprocessdebuggoogleservices-no-matching-client-found-for-package-namecom-cotocus-holidaylandmark-publisher-holidaylandmark_publisher-android-studio-solved/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra]]></dc:creator>
		<pubDate>Wed, 06 Oct 2021 12:12:59 +0000</pubDate>
				<category><![CDATA[flutter]]></category>
		<category><![CDATA[app]]></category>
		<category><![CDATA[build.gradle]]></category>
		<category><![CDATA[google-services.json]]></category>
		<category><![CDATA[What went wrong: Execution failed for task &#039;:app:processDebugGoogleServices&#039;.]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=15572</guid>

					<description><![CDATA[<p>What went wrong: Execution failed for task &#8216;:app:processDebugGoogleServices&#8217;. No matching client found for package name &#8216;com.example.myapp &#8216; Step -1: check your google-services.json and build.gradle matching applicationId and <a class="read-more-link" href="https://www.aiuniverse.xyz/execution-failed-for-taskappprocessdebuggoogleservices-no-matching-client-found-for-package-namecom-cotocus-holidaylandmark-publisher-holidaylandmark_publisher-android-studio-solved/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/execution-failed-for-taskappprocessdebuggoogleservices-no-matching-client-found-for-package-namecom-cotocus-holidaylandmark-publisher-holidaylandmark_publisher-android-studio-solved/">Execution failed for task&#8217;:app:processDebugGoogleServices&#8217;.&gt; No matching client found for package name&#8217;com.cotocus.holidaylandmark.publisher.holidaylandmark_publisher&#8217;   android studio-SOLVED</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="496" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/10/blog-image-1024x496.jpg" alt="" class="wp-image-15573" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/10/blog-image-1024x496.jpg 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2021/10/blog-image-300x145.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/10/blog-image-768x372.jpg 768w, https://www.aiuniverse.xyz/wp-content/uploads/2021/10/blog-image.jpg 1335w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">What went wrong: Execution failed for task &#8216;:app:processDebugGoogleServices&#8217;.</h2>



<h2 class="wp-block-heading">No matching client found for package name &#8216;com.example.myapp &#8216;</h2>



<h2 class="wp-block-heading">Step -1: check your google-services.json and build.gradle  matching  applicationId and package_name match </h2>



<h2 class="wp-block-heading"> this is  google-services.json file</h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="488" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/10/blog3-1-1024x488.jpg" alt="" class="wp-image-15577" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/10/blog3-1-1024x488.jpg 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2021/10/blog3-1-300x143.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/10/blog3-1-768x366.jpg 768w, https://www.aiuniverse.xyz/wp-content/uploads/2021/10/blog3-1.jpg 1300w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading">  this is  build.gradle  file </h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="462" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/10/blog2-2-1024x462.jpg" alt="" class="wp-image-15578" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/10/blog2-2-1024x462.jpg 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2021/10/blog2-2-300x135.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/10/blog2-2-768x347.jpg 768w, https://www.aiuniverse.xyz/wp-content/uploads/2021/10/blog2-2.jpg 1365w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h3 class="wp-block-heading">So no matching applicationId and package name get the match so remove com.</h3>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="428" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/10/blog4-1024x428.jpg" alt="" class="wp-image-15580" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/10/blog4-1024x428.jpg 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2021/10/blog4-300x125.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/10/blog4-768x321.jpg 768w, https://www.aiuniverse.xyz/wp-content/uploads/2021/10/blog4.jpg 1330w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>
<p>The post <a href="https://www.aiuniverse.xyz/execution-failed-for-taskappprocessdebuggoogleservices-no-matching-client-found-for-package-namecom-cotocus-holidaylandmark-publisher-holidaylandmark_publisher-android-studio-solved/">Execution failed for task&#8217;:app:processDebugGoogleServices&#8217;.&gt; No matching client found for package name&#8217;com.cotocus.holidaylandmark.publisher.holidaylandmark_publisher&#8217;   android studio-SOLVED</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/execution-failed-for-taskappprocessdebuggoogleservices-no-matching-client-found-for-package-namecom-cotocus-holidaylandmark-publisher-holidaylandmark_publisher-android-studio-solved/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Make a Confirm Dialog in Flutter</title>
		<link>https://www.aiuniverse.xyz/how-to-make-a-confirm-dialog-in-flutter/</link>
					<comments>https://www.aiuniverse.xyz/how-to-make-a-confirm-dialog-in-flutter/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra]]></dc:creator>
		<pubDate>Thu, 30 Sep 2021 13:02:02 +0000</pubDate>
				<category><![CDATA[flutter]]></category>
		<category><![CDATA[Confirm Dialog]]></category>
		<category><![CDATA[Cupertino Confirm Dialog]]></category>
		<category><![CDATA[Material Confirm Dialog]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=15558</guid>

					<description><![CDATA[<p>A confirm dialog is a dialog box that asks users to approve the requested operation. It usually appears with button pairs like Yes/No, OK/Cancel, Agree/Disagree. Confirm dialogs <a class="read-more-link" href="https://www.aiuniverse.xyz/how-to-make-a-confirm-dialog-in-flutter/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-make-a-confirm-dialog-in-flutter/">How to Make a Confirm Dialog in Flutter</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="362" height="636" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/flutter-po.jpg" alt="" class="wp-image-15559" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/flutter-po.jpg 362w, https://www.aiuniverse.xyz/wp-content/uploads/2021/09/flutter-po-171x300.jpg 171w" sizes="auto, (max-width: 362px) 100vw, 362px" /></figure>



<p>A confirm dialog is a dialog box that asks users to approve the requested operation. It usually appears with button pairs like Yes/No, OK/Cancel, Agree/Disagree. Confirm dialogs help prevent accidental actions such as deleting content, closing an account, leaving a page when the form content on that page has not been saved, etc.</p>



<p>This article shows you how to creat confirm dialogs in Flutter. We will go over 2 examples: the first one demonstrates a material confirm dialog and the second one displays a Cupertino (iOS-style) confirm dialog.</p>



<h2 class="wp-block-heading">Material Confirm Dialog</h2>



<p>If you are developing an app for both Android and iOS and doesn’t need an iOS-exclusive experience, using material is a good way to go.</p>



<h2 class="wp-block-heading">Preview</h2>



<p>Our sample app has a button and a red box. When the button is pressed, a confirm dialog will show up.</p>



<ul class="wp-block-list"><li>f the user select “Yes”, the box will be removed then the dialog will be closed. The button then becomes disable.</li><li>If the user select “No”, the dialog will be closed and nothing else happens.</li></ul>



<figure class="wp-block-video"><video height="506" style="aspect-ratio: 676 / 506;" width="676" controls src="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/Flutter-material-confirm-dialog.mp4"></video></figure>



<h2 class="wp-block-heading">The code</h2>



<p>The complete code with explanations:</p>



<script src="https://gist.github.com/dharmu9898/b5d50876bcff37cf23fa3a5208635b3a.js"></script>



<h2 class="wp-block-heading">Cupertino Confirm Dialog</h2>



<h3 class="wp-block-heading">Preview</h3>



<figure class="wp-block-video"><video height="736" style="aspect-ratio: 1360 / 736;" width="1360" controls src="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/bandicam-2021-09-30-18-24-54-664.mp4"></video></figure>



<h2 class="wp-block-heading">The code</h2>



<h3 class="wp-block-heading">Don’t forget to import the Cupertino library:</h3>



import &#8216;package:flutter/cupertino.dart&#8217;;



<h3 class="wp-block-heading">The full code for the xample:</h3>



<script src="https://gist.github.com/dharmu9898/cd4fe3aa3c9a4e9f1a0474a4638fdd4c.js"></script>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-make-a-confirm-dialog-in-flutter/">How to Make a Confirm Dialog in Flutter</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-to-make-a-confirm-dialog-in-flutter/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		<enclosure url="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/Flutter-material-confirm-dialog.mp4" length="408559" type="video/mp4" />
<enclosure url="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/bandicam-2021-09-30-18-24-54-664.mp4" length="1201382" type="video/mp4" />

			</item>
		<item>
		<title>JavaScript ES6 Features</title>
		<link>https://www.aiuniverse.xyz/javascript-es6-features/</link>
					<comments>https://www.aiuniverse.xyz/javascript-es6-features/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra]]></dc:creator>
		<pubDate>Wed, 15 Sep 2021 13:08:56 +0000</pubDate>
				<category><![CDATA[ECMAScript]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Arrow]]></category>
		<category><![CDATA[const]]></category>
		<category><![CDATA[ES6]]></category>
		<category><![CDATA[for]]></category>
		<category><![CDATA[let]]></category>
		<category><![CDATA[variable]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=15542</guid>

					<description><![CDATA[<p>What is ECMAScript 6 (or ES6) ECMAScript 2015 (or ES6) is the sixth and major edition of the ECMAScript language specification standard. It defines the standard for <a class="read-more-link" href="https://www.aiuniverse.xyz/javascript-es6-features/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/javascript-es6-features/">JavaScript ES6 Features</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">What is ECMAScript 6 (or ES6)</h2>



<p>ECMAScript 2015 (or ES6) is the sixth and major edition of the ECMAScript language specification standard. It defines the standard for the JavaScript implementation.</p>



<p>ES6 brought significant changes to the JavaScript language. It introduces several new features such as, block-scoped variables, new loop for iterating over arrays and objects, template literals, and many other enhancements to make JavaScript programming easier and more fun. In this chapter, we will discuss some of the best ES6 features that you can use in your everyday JavaScript coding.</p>



<h2 class="wp-block-heading">The <code>let</code> Keyword</h2>



<p>ES6 introduces the new&nbsp;<code>let</code>&nbsp;keyword for declaring variables. Prior to ES6, the only way to declare a variable in JavaScript was the&nbsp;<code>var</code>&nbsp;keyword. Let&#8217;s see what&#8217;s the difference between them is.</p>



<p>There are two critical differences between the <code>var</code> and <code>let</code>. Variables declared with the <code>var</code> keyword are function-scoped and hoisted at the top within its scope, whereas variables declared with <code>let</code> keyword are block-scoped (<code>{}</code>) and they are not hoisted.</p>



<p>Block scoping simply means that a new scope is created between a pair of curly brackets i.e. <code>{}</code>. Therefore, if you declare a variable with the <code>let</code> keyword inside a loop, it does not exist outside of the loop, as demonstrated in the following example:</p>



<script src="https://gist.github.com/dharmu9898/5a457ed59ef28a2c53d1b490389f5fcd.js"></script>



<p>As you can see in the above example the variable <code>i</code> in the first block is not accessible outside the <code>for</code> loop. This also enables us to reuse the same variable name multiple times as its scope is limited to the block (<code>{}</code>), which results in less variable declaration and more cleaner code.</p>



<h2 class="wp-block-heading">The <code>const</code> Keyword</h2>



<p>The new <code>const</code> keyword makes it possible to define constants. Constants are read-only, you cannot reassign new values to them. They are also block-scoped like <code>let</code>.</p>



<script src="https://gist.github.com/dharmu9898/3d4892fbca0d717530063f3fcb8f46cb.js"></script>



<h4 class="wp-block-heading">However, you can still change object properties or array elements:</h4>



<script src="https://gist.github.com/dharmu9898/228612cb17194323de5e0d78c8182b6c.js"></script>



<h2 class="wp-block-heading">The <code>for...of</code> Loop Variable</h2>



<p>The new <code>for...of</code> loop allows us to iterate over arrays or other iterable objects very easily. Also, the code inside the loop is executed for each element of the iterable object. Here&#8217;s an example:</p>



<script src="https://gist.github.com/dharmu9898/7cb21e7cd519ce2f3a5887d7fc79d699.js"></script>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1002" height="598" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/variable.jpg" alt="" class="wp-image-15543" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/variable.jpg 1002w, https://www.aiuniverse.xyz/wp-content/uploads/2021/09/variable-300x179.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/09/variable-768x458.jpg 768w" sizes="auto, (max-width: 1002px) 100vw, 1002px" /></figure>



<h2 class="wp-block-heading">Arrow Functions</h2>



<p>Arrow Functions are another interesting feature in ES6. It provides a more concise syntax for writing function expressions by opting out the <code>function</code> and <code>return</code> keywords.</p>



<p>Arrow functions are defined using a new syntax, the fat arrow (<code>=></code>) notation. Let&#8217;s see how it looks:</p>



<script src="https://gist.github.com/dharmu9898/f6e80a211d876bf65335c1c4e3044e19.js"></script>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1023" height="572" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/arrow.jpg" alt="" class="wp-image-15544" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/arrow.jpg 1023w, https://www.aiuniverse.xyz/wp-content/uploads/2021/09/arrow-300x168.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/09/arrow-768x429.jpg 768w" sizes="auto, (max-width: 1023px) 100vw, 1023px" /></figure>
<p>The post <a href="https://www.aiuniverse.xyz/javascript-es6-features/">JavaScript ES6 Features</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/javascript-es6-features/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to return multiple blade file using single function inside same controller and same route</title>
		<link>https://www.aiuniverse.xyz/how-to-return-multiple-blade-file-using-single-function-inside-same-controller-and-same-route/</link>
					<comments>https://www.aiuniverse.xyz/how-to-return-multiple-blade-file-using-single-function-inside-same-controller-and-same-route/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra]]></dc:creator>
		<pubDate>Mon, 13 Sep 2021 13:06:21 +0000</pubDate>
				<category><![CDATA[laravel]]></category>
		<category><![CDATA[multiple blade]]></category>
		<category><![CDATA[same route]]></category>
		<category><![CDATA[same sontroller]]></category>
		<category><![CDATA[single function]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=15538</guid>

					<description><![CDATA[<p>now on main public route I am raturning a method. web.php Route::get(&#8216;/trips&#8217;, &#8216;CategoryController@index&#8217;)->name(&#8216;trips&#8217;); CategoryController.php</p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-return-multiple-blade-file-using-single-function-inside-same-controller-and-same-route/">How to return multiple blade file using single function inside same controller and same route</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">now on main public route I am raturning a method.</h2>



<h2 class="wp-block-heading">web.php</h2>



Route::get(&#8216;/trips&#8217;, &#8216;CategoryController@index&#8217;)->name(&#8216;trips&#8217;);



<h2 class="wp-block-heading">CategoryController.php</h2>



<script src="https://gist.github.com/dharmu9898/ee8a349c666117771336ceccbb5c4fb8.js"></script>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-return-multiple-blade-file-using-single-function-inside-same-controller-and-same-route/">How to return multiple blade file using single function inside same controller and same route</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-to-return-multiple-blade-file-using-single-function-inside-same-controller-and-same-route/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Flutter Basic Query</title>
		<link>https://www.aiuniverse.xyz/flutter-basic-query/</link>
					<comments>https://www.aiuniverse.xyz/flutter-basic-query/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra]]></dc:creator>
		<pubDate>Fri, 10 Sep 2021 12:55:21 +0000</pubDate>
				<category><![CDATA[flutter]]></category>
		<category><![CDATA[Button]]></category>
		<category><![CDATA[Types of Widget]]></category>
		<category><![CDATA[Visible widget]]></category>
		<category><![CDATA[Widgets]]></category>
		<category><![CDATA[World]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=15535</guid>

					<description><![CDATA[<p>Flutter Widgets Hello World Example Types of Widget We can split the Flutter widget into two categories: Visible (Output and Input) Invisible (Layout and Control) Visible widget <a class="read-more-link" href="https://www.aiuniverse.xyz/flutter-basic-query/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/flutter-basic-query/">Flutter Basic Query</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="674" height="527" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/flatter.jpg" alt="" class="wp-image-15536" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/09/flatter.jpg 674w, https://www.aiuniverse.xyz/wp-content/uploads/2021/09/flatter-300x235.jpg 300w" sizes="auto, (max-width: 674px) 100vw, 674px" /></figure>



<h2 class="wp-block-heading">Flutter Widgets</h2>



<script src="https://gist.github.com/dharmu9898/8329c20171486369201d1ba02cc20002.js"></script>



<h2 class="wp-block-heading"><strong>Hello World Example</strong></h2>



<script src="https://gist.github.com/dharmu9898/7443482ebf9a06817ac717740aa42e6c.js"></script>



<h2 class="wp-block-heading">Types of Widget</h2>



<p>We can split the Flutter widget into two categories:</p>



<ul class="wp-block-list"><li>Visible (Output and Input)</li><li>Invisible (Layout and Control)</li></ul>



<h2 class="wp-block-heading">Visible widget</h2>



<p>The visible widgets are related to the user input and output data. Some of the important types of this widget are:</p>



<p><strong>Text</strong></p>



<p>A Text widget holds some text to display on the screen. We can align the text widget by using <strong>textAlign</strong> property, and style property allow the customization of Text that includes font, font weight, font style, letter spacing, color, and many more. We can use it as like below code snippets.</p>



<script src="https://gist.github.com/dharmu9898/f9e5f7048301b55c7ec7f416a8ea84e7.js"></script>



<h2 class="wp-block-heading"><strong>Button</strong></h2>



<p>This widget allows you to perform some action on click. Flutter does not allow you to use the Button widget directly; instead, it uses a type of buttons like a <strong>FlatButton</strong> and a <strong>RaisedButton</strong>. We can use it as like below code snippets.</p>



<script src="https://gist.github.com/dharmu9898/1ba8e7986697b592dfc25a53064d9186.js"></script>



<p>In the above example, the <strong>onPressed</strong> property allows us to perform an action when you click the button, and <strong>elevation</strong> property is used to change how much it stands out.</p>



<p></p>
<p>The post <a href="https://www.aiuniverse.xyz/flutter-basic-query/">Flutter Basic Query</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/flutter-basic-query/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to Popup modal to all data display in JavaScript</title>
		<link>https://www.aiuniverse.xyz/how-to-popup-modal-to-all-data-display-in-javascript/</link>
					<comments>https://www.aiuniverse.xyz/how-to-popup-modal-to-all-data-display-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra]]></dc:creator>
		<pubDate>Mon, 30 Aug 2021 10:46:47 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[modal]]></category>
		<category><![CDATA[popup]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=15519</guid>

					<description><![CDATA[<p>First let’s go to popup button in blade file Go to Popup modal in blade file add this code modal your JavaScript Go to Popup JavaScript in <a class="read-more-link" href="https://www.aiuniverse.xyz/how-to-popup-modal-to-all-data-display-in-javascript/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-popup-modal-to-all-data-display-in-javascript/">How to Popup modal to all data display in JavaScript</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="483" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/popup-1024x483.jpg" alt="" class="wp-image-15520" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/popup-1024x483.jpg 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/popup-300x142.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/popup-768x363.jpg 768w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/popup.jpg 1341w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading"> First let’s go to popup button in blade file</h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="253" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/popupbutton-1024x253.jpg" alt="" class="wp-image-15521" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/popupbutton-1024x253.jpg 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/popupbutton-300x74.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/popupbutton-768x189.jpg 768w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/popupbutton.jpg 1200w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<script src="https://gist.github.com/dharmu9898/3e7ecf5dc11251fe785c35729dad891d.js"></script>



<h2 class="wp-block-heading">Go to Popup modal in blade file add this code modal  your JavaScript </h2>



<script src="https://gist.github.com/dharmu9898/211758c3f8d08248d1889bdb4c4e1ac0.js"></script>



<h2 class="wp-block-heading"> Go to Popup JavaScript in blade file add this code your JavaScript </h2>



<script src="https://gist.github.com/dharmu9898/939807c46480bc0cdc9a732264c0fb29.js"></script>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-popup-modal-to-all-data-display-in-javascript/">How to Popup modal to all data display in JavaScript</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-to-popup-modal-to-all-data-display-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to other table data to store another table data</title>
		<link>https://www.aiuniverse.xyz/how-to-other-table-data-to-store-another-table-data/</link>
					<comments>https://www.aiuniverse.xyz/how-to-other-table-data-to-store-another-table-data/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra]]></dc:creator>
		<pubDate>Thu, 26 Aug 2021 13:01:10 +0000</pubDate>
				<category><![CDATA[laravel]]></category>
		<category><![CDATA[controller]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[table]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=15512</guid>

					<description><![CDATA[<p>This is packages table This is addimages table First let’s go to your Controller file and our function</p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-other-table-data-to-store-another-table-data/">How to other table data to store another table data</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">This is packages table </h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="264" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/2-1024x264.jpg" alt="" class="wp-image-15513" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/2-1024x264.jpg 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/2-300x77.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/2-768x198.jpg 768w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/2.jpg 1361w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading"> This is addimages table  </h2>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="228" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/1-1024x228.jpg" alt="" class="wp-image-15515" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/1-1024x228.jpg 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/1-300x67.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/1-768x171.jpg 768w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/1.jpg 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading"> First let’s go to  your Controller file and our function</h2>



<script src="https://gist.github.com/dharmu9898/d1f31e2bf20434a8a499ce0cfde2aec4.js"></script>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="707" height="543" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/datapages.jpg" alt="" class="wp-image-15516" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/datapages.jpg 707w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/datapages-300x230.jpg 300w" sizes="auto, (max-width: 707px) 100vw, 707px" /></figure>



<h2 class="wp-block-heading">    </h2>



<p> </p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-other-table-data-to-store-another-table-data/">How to other table data to store another table data</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-to-other-table-data-to-store-another-table-data/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How get data in Dropdown of multiple role id in Laravel</title>
		<link>https://www.aiuniverse.xyz/how-get-data-in-dropdown-of-multiple-role-id-in-laravel/</link>
					<comments>https://www.aiuniverse.xyz/how-get-data-in-dropdown-of-multiple-role-id-in-laravel/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra]]></dc:creator>
		<pubDate>Thu, 26 Aug 2021 11:00:12 +0000</pubDate>
				<category><![CDATA[laravel]]></category>
		<category><![CDATA[append]]></category>
		<category><![CDATA[dropdwon]]></category>
		<category><![CDATA[multiple role id]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=15504</guid>

					<description><![CDATA[<p>First let’s go to your Laravel project And add your Blade file And go to your Laravel project And add your Controller file This is Database structure</p>
<p>The post <a href="https://www.aiuniverse.xyz/how-get-data-in-dropdown-of-multiple-role-id-in-laravel/">How get data in Dropdown of multiple role id in Laravel</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="576" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/multipale-role-id-1-1024x576.png" alt="" class="wp-image-15505" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/multipale-role-id-1-1024x576.png 1024w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/multipale-role-id-1-300x169.png 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/multipale-role-id-1-768x432.png 768w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/multipale-role-id-1.png 1366w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<h2 class="wp-block-heading"> <strong>First let’s go to your Laravel project</strong> And add your Blade file  </h2>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="783" height="597" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/blade-file-2.jpg" alt="" class="wp-image-15507" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/blade-file-2.jpg 783w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/blade-file-2-300x229.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/blade-file-2-768x586.jpg 768w" sizes="auto, (max-width: 783px) 100vw, 783px" /></figure>



<script src="https://gist.github.com/dharmu9898/4590e37058793dd5588da420a1d93a8f.js"></script>



<h2 class="wp-block-heading"> <strong>And go to your Laravel project</strong> And add your Controller file   </h2>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="977" height="530" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/this-is-controller-1.jpg" alt="" class="wp-image-15509" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/this-is-controller-1.jpg 977w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/this-is-controller-1-300x163.jpg 300w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/this-is-controller-1-768x417.jpg 768w" sizes="auto, (max-width: 977px) 100vw, 977px" /></figure>



<script src="https://gist.github.com/dharmu9898/2b3b2918e9ceec10dd5ed375e902991c.js"></script>



<h2 class="wp-block-heading">This is Database structure</h2>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="720" height="449" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/database-captcha-1.jpg" alt="" class="wp-image-15510" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/database-captcha-1.jpg 720w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/database-captcha-1-300x187.jpg 300w" sizes="auto, (max-width: 720px) 100vw, 720px" /></figure>
<p>The post <a href="https://www.aiuniverse.xyz/how-get-data-in-dropdown-of-multiple-role-id-in-laravel/">How get data in Dropdown of multiple role id in Laravel</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-get-data-in-dropdown-of-multiple-role-id-in-laravel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to get a Particular aliments of array using slice method in Laravel</title>
		<link>https://www.aiuniverse.xyz/how-to-get-a-particular-aliments-of-array-using-slice-method-in-laravel/</link>
					<comments>https://www.aiuniverse.xyz/how-to-get-a-particular-aliments-of-array-using-slice-method-in-laravel/#respond</comments>
		
		<dc:creator><![CDATA[dharmendra]]></dc:creator>
		<pubDate>Mon, 23 Aug 2021 06:22:02 +0000</pubDate>
				<category><![CDATA[laravel]]></category>
		<category><![CDATA[aliments]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[slice method]]></category>
		<guid isPermaLink="false">https://www.aiuniverse.xyz/?p=15462</guid>

					<description><![CDATA[<p>array_slice (PHP 4, PHP 5, PHP 7, PHP 8) array_slice&#160;—&#160;Extract a slice of the array Description array_slice( array $array, int $offset, ?int $length = null, bool $preserve_keys <a class="read-more-link" href="https://www.aiuniverse.xyz/how-to-get-a-particular-aliments-of-array-using-slice-method-in-laravel/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-get-a-particular-aliments-of-array-using-slice-method-in-laravel/">How to get a Particular aliments of array using slice method in Laravel</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="621" height="276" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/array-slice-1.jpg" alt="" class="wp-image-15469" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/array-slice-1.jpg 621w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/array-slice-1-300x133.jpg 300w" sizes="auto, (max-width: 621px) 100vw, 621px" /></figure>



<h2 class="wp-block-heading">array_slice</h2>



<p>(PHP 4, PHP 5, PHP 7, PHP 8)</p>



<p>array_slice&nbsp;—&nbsp;Extract a slice of the array</p>



<h2 class="wp-block-heading">Description</h2>



array_slice(
    array $array,
    int $offset,
    ?int $length = null,
    bool $preserve_keys = false
): array



<h3 class="wp-block-heading"><strong>array_slice()</strong>&nbsp;returns the sequence of elements from the array&nbsp;<code>array</code>&nbsp;as specified by the&nbsp;<code>offset</code>&nbsp;and&nbsp;<code>length</code>&nbsp;parameters.</h3>



<h2 class="wp-block-heading"><strong>Parameters</strong></h2>



<p><code><strong>array</strong></code></p>



<p>The input array.</p>



<p><code><strong>offset</strong></code></p>



<p>If&nbsp;<code><strong>offset</strong></code>&nbsp;is non-negative, the sequence will start at that offset in the&nbsp;<strong><code>array</code>.</strong></p>



<p>If&nbsp;<code><strong>offset</strong></code>&nbsp;is negative, the sequence will start that far from the end of the&nbsp;<strong><code>array</code>.</strong></p>



<h2 class="wp-block-heading">length</h2>



<p>If&nbsp;<code><strong>length</strong></code>&nbsp;is given and is positive, then the sequence will have up to that many elements in it.</p>



<p>If the array is shorter than the&nbsp;<strong><code>length</code>,</strong> then only the available array elements will be present.</p>



<p>If&nbsp;<code><strong>length</strong></code>&nbsp;is given and is negative then the sequence will stop that many elements from the end of the array.</p>



<p>If it is omitted, then the sequence will have everything from&nbsp;<code><strong>offset</strong></code>&nbsp;up until the end of the&nbsp;<code><strong>array</strong></code>.</p>



<h2 class="wp-block-heading">Return Values</h2>



<p>Returns the slice. If the offset is larger than the size of the array, an empty array is returned.</p>



<h2 class="wp-block-heading">Examples</h2>



<p><strong>Example #1&nbsp;<strong>array_slice()</strong>&nbsp;examples</strong></p>



<script src="https://gist.github.com/dharmu9898/8cf1143bf9af2a26d5ee83d7bb0c598d.js"></script>



<h2 class="wp-block-heading">The above example will output:</h2>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="384" height="258" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/slice.jpg" alt="" class="wp-image-15463" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/slice.jpg 384w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/slice-300x202.jpg 300w" sizes="auto, (max-width: 384px) 100vw, 384px" /></figure>



<h3 class="wp-block-heading"><strong>Example #2&nbsp;<strong>array_slice()</strong>&nbsp;and one-based array</strong></h3>



<script src="https://gist.github.com/dharmu9898/cec057bbe05cf3332586647253d1a977.js"></script>



<h2 class="wp-block-heading">The above example will output:</h2>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="207" height="136" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/secound.jpg" alt="" class="wp-image-15464"/></figure>



<h2 class="wp-block-heading"><strong>Example #3&nbsp;<strong>array_slice()</strong>&nbsp;and array with mixed keys</strong></h2>



<script src="https://gist.github.com/dharmu9898/43be67901b914ac023722b0e1852c84f.js"></script>



<h2 class="wp-block-heading">The above example will output:</h2>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="335" height="310" src="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/forth.jpg" alt="" class="wp-image-15465" srcset="https://www.aiuniverse.xyz/wp-content/uploads/2021/08/forth.jpg 335w, https://www.aiuniverse.xyz/wp-content/uploads/2021/08/forth-300x278.jpg 300w" sizes="auto, (max-width: 335px) 100vw, 335px" /></figure>
<p>The post <a href="https://www.aiuniverse.xyz/how-to-get-a-particular-aliments-of-array-using-slice-method-in-laravel/">How to get a Particular aliments of array using slice method in Laravel</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/how-to-get-a-particular-aliments-of-array-using-slice-method-in-laravel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
