Snippets Collections
// Creating a multidimensional associative array
$employees = array(
    array("name" => "John", "age" => 30, "position" => "Developer"),
    array("name" => "Alice", "age" => 25, "position" => "Designer"),
    array("name" => "Bob", "age" => 35, "position" => "Manager")
);

// Accessing elements in a multidimensional associative array
echo $employees[0]["name"];      // Outputs "John"
echo $employees[1]["position"];  // Outputs "Designer"
echo $employees[2]["age"];       // Outputs 35
// Creating a multidimensional array
$matrix = array(
    array(1, 2, 3),
    array(4, 5, 6),
    array(7, 8, 9)
);

// Accessing elements in a two-dimensional array
echo $matrix[0][1]; // Outputs 2
echo $matrix[1][2]; // Outputs 6
echo $matrix[2][0]; // Outputs 7
// Adding a new element
$person["occupation"] = "Developer";

// Modifying an existing element
$person["age"] = 26;

// Accessing the updated elements
echo $person["occupation"]; // Outputs "Developer"
echo $person["age"];        // Outputs 26
// Creating an associative array
$person = array(
    "name" => "John",
    "age" => 25,
    "city" => "New York"
);

// Accessing elements by key
echo $person["name"]; // Outputs "John"
echo $person["age"];  // Outputs 25
echo $person["city"]; // Outputs "New York"
// Adding a new element
$fruits[] = "Grapes";

// Accessing the newly added element
echo $fruits[3]; // Outputs "Grapes"
// Creating a numeric array
$fruits = array("Apple", "Banana", "Orange");

// Accessing elements by index
echo $fruits[0]; // Outputs "Apple"
echo $fruits[1]; // Outputs "Banana"
echo $fruits[2]; // Outputs "Orange"
kubectl get pods -A | grep Evicted | awk '{print $2 " -n " $1}' | xargs -n 3 kubectl delete pod
import {Metadata} from "next";

import {API_BASE_URL} from "@/app/constants";
import {getFrameVersion} from "@/app/actions";
import {MetadataProps} from "@/app/types";


export async function generateMetadata(
  {searchParams}: MetadataProps,
): Promise<Metadata> {

  const version = await getFrameVersion();

  const {gameId} = searchParams;

  const imageUrl = `${API_BASE_URL}/images/level?gameId=${gameId}&version=${version}`;

  const fcMetadata: Record<string, string> = {
    "fc:frame": "vNext",
    "fc:frame:post_url": `${API_BASE_URL}/next?version=${version}`,
    "fc:frame:image": imageUrl,
    "fc:frame:button:1": "MVP",
    "fc:frame:button:2": "Not MVP",
  };

  return {
    title: "MVP or not MVP?",
    openGraph: {
      title: "MVP or not MVP?",
      images: ["/api/splash"],
    },
    other: {
      ...fcMetadata,
    },
    metadataBase: new URL(process.env["HOST"] || "")
  };
}

export default async function Page() {
  return <p>next</p>;
}
class Solution(object):
  def lengthOfLongestSubstring(self, s):
    max_sub_length = 0
    start = 0
    s_length = len(s)
    
    for end in range(1, s_length):
      if s[end] in s[start:end]:
        start = s[start:end].index(s[end]) + 1 + start
      else:
        max_sub_length = max(max_sub_length, end - start + 1)
	return max_sub_length    
What Does a Server Do?
As we mentioned before, Node.js allows us to interact with different operating systems. One of these is the file system, which is something that software engineers have to constantly work with. For example, when sending a post on Instagram, the server first needs to receive this post and record it to the disk. The same thing happens when you scroll through your feed: the user requests the image, then the server finds the right file and sends this data back to the user.

In this lesson, we'll talk about how to work with files on the server and teach you how to read data from files and folders, write new data to a file, create directories, and delete files. Let's go!

What Module Do We Need?
Node.js comes with the fs module, which allows us to access and manipulate the file system. There's a built-in method for each operation you might need to perform. Let's start off with reading files. For that, we have the readFile() function.

This function works asynchronously and takes three arguments: the name of the file that we want to read, an options object (optional), and a callback. In the callback, we need to describe what should be done with the data.

The callback has two parameters. Normally, the first parameter of a Node.js callback is an err parameter, which is used to handle potential errors. Second, we have the data parameter, which represents the contents of the file.

const fs = require('fs');

fs.readFile('data.json', (err, data) => {
  if (err) {
    console.log(err);
    return;
  }

  console.log('data: ', data.toString('utf8'));
});
The first callback parameter can have one of the following two values: 

If an error occurs while reading the file, the value of this parameter will be an object containing the error information
If the file is read successfully and there's nothing wrong with it, this parameter will have a value of null
As mentioned above, the second parameter of the callback is the file data. This comes in the form of binary code and is referred to as buffer data because it represents an instance of JavaScript's global Buffer class. In order to be able to work with this data, we first need to convert it into a string. There are two ways of doing this:

By using the toString() method. It'll look like this: data.toString('utf8'). This method takes a string as an argument, whose value is the encoding format into which we want to convert this data.
By passing the encoding format inside the encoding property of the options object of the readFile() method. If we do things this way, we don't need an extra method to convert the file as it will already be in the form of a string:
const fs = require('fs');

fs.readFile('data.json', { encoding: 'utf8' }, (err, data) => { // the options object is passed as the second argument. It contains the encoding property, in which we specify the character encoding to use 
  if (err) {
    console.log(err);
    return;
  }

  console.log('data: ', data); // since the data comes as a string, we don't need to call the toString() method here 
});
 
What Else Can the fs Module Do?
It Can Read All the Files in a Directory
Node.js provides the fs.readdir() method for doing this. The first argument of this method is the path to the directory. The second one is a callback, which describes what should be done with the data returned.

The callback also has two parameters — an error parameter (err) and an array of the file names:

const fs = require('fs');

fs.readdir('.', (err, files) => {
  if (err) {
    console.log(err);
    return;
  }

  console.log('data: ', files);
});
It Can Create Folders
The method for creating folders is fs.mkdir(). It takes two arguments: the name of the new folder, and a callback with a single argument, i.e. the error object. When passing the first argument, we can specify the path to this new file along with its name:

const fs = require('fs');

fs.mkdir('incomingData/data', (err) => {
  if (err) console.log(err);
});
It Can Write Data to a File
This is done with the fs.writeFile() method. It has three parameters:

The file to which we want to write data
Data in the form of a string
A callback for error processing
const fs = require('fs');

fs.writeFile('data.json', JSON.stringify([1, 2, 3]), (err) => {
  if (err) console.log(err);
});
It Can Delete Files
To delete files, we use the fs.unlink() method, which takes two arguments — the file name and a callback for processing errors:

const fs = require('fs');

fs.unlink('data.json', (err) => {
  if (err) {
    console.log(err);
    return;
  }

  console.log('The file was deleted!'); 
});
It Can Do a Lot of Other Useful Things
The remaining methods of the fs module work in mostly the same way. If you want to do something with a file that we haven't explained how to do here, you can read the Node.js documentation, where you should find a method for what you want to do.

Using Promises when Working with Files
Node.js v10.0.0 introduced an fs module that supports promises. When we use promises, we don't need to pass any callbacks. If the data is read successfully, the promise will be resolved, and if the operation fails, the promise will be rejected, so to handle the success cases, all you need to do is add the asynchronous then() handler and put the code you want to be executed inside it:

const fsPromises = require('fs').promises;

fsPromises.readFile('data.json', { encoding: 'utf8' })
  .then((data) => {
    console.log(data);
  })
  .catch(err => {
    console.log(err);
  });
Documentation on the fs Promises API.

Routing problems
Working with a file system involves setting up routing. But how should we do this? Do we write file paths relative to the entry point, or do we write them based upon the file where the code is located? To figure this out, let's consider the following example:

Let's say we have the app.js file as our entry point, which contains the following code:

// app.js

const fs = require('fs');

const readFile = () => {
  const file = fs.readFile('file.txt', { encoding: 'utf8' }, (err, data) => {
    console.log(data); // logging the content of the file to the console
  }); // reading file.txt with a relative path
};

readFile();
After that, let's say we decide to move the contents of this file and the logic for working with it to a separate folder, which results in the following file structure:



Since the logic for working with the file is now stored in a different folder, we need to connect it to the entry point, which is the app.js file. To do that, we need to import the readFile() function:

// app.js

const fs = require('fs');
const { readFile } = require('./files/read-file');

readFile();
Then, we export that same function from the read-file.js file:

// read-file.js

const fs = require('fs');

module.exports.readFile = () => {
  const file = fs.readFile('file.txt', { encoding: 'utf8' }, (err, data) => {
    console.log(data);
  });
};
This code will lead to an error, because it won't be able to find file.txt. The problem lies in the relative path. Instead of reading the path relative to where the function is set up, the path is read relative to the file in which the code is run. We could have changed the path to the file from file.txt to /files/file.txt, but this is not ideal because as we add more files to our project, it will become difficult to manage and keep track of the routes.

Thankfully, there's a simple solution. We can make the routes dynamic. Instead of writing the path explicitly, we can read it from its module. To make this happen, there are two things to consider:

We need to know where the module we want to access is located.
We need an extra path module for working with directories and file paths. This module allows us to take the folder names, join them together, and create a path.
Let's talk about each of these in more detail. 

What does a module store?
Each Node.js module contains information about itself and its environment. For example, we can check a module's location or see whether or not it's our application's entry point.

Where is a module located?
Every module contains the  __filename and __dirname variables, which store the module's file path and directory path, respectively.

// app.js

console.log(__filename); // /usr/local/project/app.js
console.log(__dirname); // /usr/local/project
We could have used a template literal or concatenation to make the path dynamic:

const file = fs.readFile(`${__dirname}/file.txt`, { encoding: 'utf8' }, (err, data) => {
    
});
However, it's better to avoid doing so because different operating systems have different slashes. While macOS uses a forward slash, MS Windows uses a backward slash. To avoid any confusion with slashes, it's better to modify paths using the path module, which was specifically designed for this purpose.

How Do We Modify a Route?
The path module provides various methods for working with file and directory paths. One of these methods is the join() method, which joins the specified path segments together and returns what's referred to as a normalized path. This method accounts for the operating system being used, so we avoid any problems with slashes: 

// read-file.js

const fs = require('fs');
const path = require('path');

module.exports.readFile = () => {
  const filepath = path.join(__dirname, 'file.txt'); // joining the path segments to create an absolute path
  const file = fs.readFile(filepath, { encoding: 'utf8' }, (err, data) => {
    console.log(data);
  }); 
};
Here are some more useful methods of the path module:

const fs = require('fs');
const path = require('path');

// the path.normalize() method normalizes the specified path
// and resolves '..' and '.' segments
path.normalize('/foo/bar//baz/asdf/quux/..'); // /foo/bar/baz/asdf

// the path.dirname() method returns the directory name of the given path
path.dirname(require.main.filename); // /usr/local/my-project

// the path.extname() method returns the extension of a file path
path.extname('app.js'); // .js
You can read more about other methods in the official Node.js documentation.

The fs and path modules are essential for working with file systems. The fs module contains methods for performing operations on the files themselves, while the path module provides the tools for creating normalized paths between them. Both these modules allow us to manage the file system without affecting the flexibility or functionality of our project.
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
c3.Genai.UnstructuredQuery.Engine.REA.RetrieverConfig.make('materiality_retriever_config').getConfig().setConfigValue("numRetrievedPassages", 10)
//For TestEmpolyee.java

public class TestEmpolyee {
    public static void main(String[] args) {
		Empolyee e1 = new Empolyee();
		Empolyee e2 = new Empolyee(3666666666666L,"mrSaadis");
		Empolyee e3 = new Empolyee(3666666666666L,"meSaadis",201000f);		
        e1.getEmpolyee();
		e2.getEmpolyee();
		e3.getEmpolyee();
		
    }
}


///////////////////////////////////////////////////////////////////////////////////////////
//For Empolyee.java
///////////////////////////////////////////////////////////////////////////////////////////


public class Empolyee {
    
	private long cnic;
	private String name;
	private double salary;
	
	public Empolyee (){
	}
	
	public Empolyee (long cnic, String name){
		setEmpolyee(cnic,name);
	}
	
	public Empolyee(long cnic, String name, double salary){
		this(cnic,name);
		this.salary = salary;
	}
	
	public void setEmpolyee (long cnic, String name){
		this.cnic = cnic;
		this.name = name;
	}
	
	public void getEmpolyee (){
		System.out.printf("Cnic no. is %d%n",this.cnic);
		System.out.printf("Name is %s%n",this.name);
		System.out.printf("Salaray is %.2f%n%n",this.salary);
	}
	
}

//For TestCircle.java

public class TestCircle {
    public static void main(String[] args) {
		
        Circle circle = new Circle(5);

        System.out.printf("Radius of the circle: %.2f%n", circle.getRadius());
        System.out.printf("Area of the circle: %.2f%n", circle.calculateArea());
        System.out.printf("Perimeter of the circle: %.2f%n%n", circle.calculatePerimeter());

        circle.setRadius(7);
        System.out.printf("Radius of the circle: %.2f%n", circle.getRadius());
        System.out.printf("Area of the circle: %.2f%n", circle.calculateArea());
        System.out.printf("Perimeter of the circle: %.2f%n%n", circle.calculatePerimeter());
		
        circle.setRadius(-3);
    }
}

///////////////////////////////////////////////////////////////////////////////////////////
//For Circle.java
///////////////////////////////////////////////////////////////////////////////////////////

public class Circle {
    private double radius;

    public Circle(double radius) {
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        if (radius > 0) {
            this.radius = radius;
        } else {
            System.out.println("Radius must be greater than 0");
        }
    }

    public double calculateArea() {
        return Math.PI * radius * radius;
    }

    public double calculatePerimeter() {
        return 2 * (Math.PI * radius);
    }
}

 onFocusedRowChanging(e) {
      const rowsCount = e.component.getVisibleRows().length;
      const pageCount = e.component.pageCount();
      const pageIndex = e.component.pageIndex();
      const key = e.event && e.event.key;

      if (key && e.prevRowIndex === e.newRowIndex) {
        if (e.newRowIndex === rowsCount - 1 && pageIndex < pageCount - 1) {
          e.component.pageIndex(pageIndex + 1).done(() => {
            e.component.option('focusedRowIndex', 0);
          });
        } else if (e.newRowIndex === 0 && pageIndex > 0) {
          e.component.pageIndex(pageIndex - 1).done(() => {
            e.component.option('focusedRowIndex', rowsCount - 1);
          });
        }
      }
    },
public class Person
{
    private string name;
    private int age;

    // Encapsulated methods to access private members
    public string GetName()
    {
        return name;
    }

    public void SetName(string newName)
    {
        name = newName;
    }

    public int GetAge()
    {
        return age;
    }

    public void SetAge(int newAge)
    {
        age = newAge;
    }
}
var dataSource = new DevExpress.data.DataSource({
    store: [
        { name: "Charlie", value: 10 },
        { name: "Alice", value: 20 },
        { name: "Bob", value: 30 }
    ],
    filter: [ "value", ">", 15 ],
    sort: { field: "name", desc: true }
});
W2UZYVP19Z-eyJsaWNlbnNlSWQiOiJXMlVaWVZQMTlaIiwibGljZW5zZWVOYW1lIjoiQ2hvbmdxaW5nIFVuaXZlcnNpdHkiLCJhc3NpZ25lZU5hbWUiOiJqdW4gbW8iLCJhc3NpZ25lZUVtYWlsIjoiY3JjbmgzQGlzdmluZy5jb20iLCJsaWNlbnNlUmVzdHJpY3Rpb24iOiJGb3IgZWR1Y2F0aW9uYWwgdXNlIG9ubHkiLCJjaGVja0NvbmN1cnJlbnRVc2UiOmZhbHNlLCJwcm9kdWN0cyI6W3siY29kZSI6IkRQTiIsInBhaWRVcFRvIjoiMjAyNC0wNy0xMCIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiREIiLCJwYWlkVXBUbyI6IjIwMjQtMDctMTAiLCJleHRlbmRlZCI6ZmFsc2V9LHsiY29kZSI6IlBTIiwicGFpZFVwVG8iOiIyMDI0LTA3LTEwIiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJJSSIsInBhaWRVcFRvIjoiMjAyNC0wNy0xMCIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiUlNDIiwicGFpZFVwVG8iOiIyMDI0LTA3LTEwIiwiZXh0ZW5kZWQiOnRydWV9LHsiY29kZSI6IkdPIiwicGFpZFVwVG8iOiIyMDI0LTA3LTEwIiwiZXh0ZW5kZWQiOmZhbHNlfSx7ImNvZGUiOiJETSIsInBhaWRVcFRvIjoiMjAyNC0wNy0xMCIsImV4dGVuZGVkIjpmYWxzZX0seyJjb2RlIjoiUlNGIiwicGFpZFVwVG8iOiIyMD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VjXyRkW2G7D7WAVt+91ahFoSeRWlKyb4KcvGvwUaa43fWLem2hyI4di2pZdr3fcYJ3xvL5ejL3m14bKsfoOv
https://fernitudela.dev/2023/01/22/d365fo-ssrs-report-parameters-cell-definitions-error/
/products/gorgeous-wooden-computer?pr_choice=default&pr_prod_strat=description&pr_rec_pid=13&pr_ref_pid=17&pr_seq=alternating

<html>
<body>
	<table border="0" cellspacing="0" cellpadding="0" width="703" style="width:527.25pt">
<tbody>
<tr>
<td width="40%" style="width:40.0%;padding:11.25pt 11.25pt 11.25pt 11.25pt">
<p style="margin-top:0;margin-bottom:0;"><span style="color:#2f5496"><img width="249" height="249" style="width:2.5937in;height:2.5937in" src="https://le-chiffre.be/wp-content/uploads/2024/02/Tatiana-LeChiffre-siganture-copie.png"  tabindex="0"><div style="opacity: 0.01; left: 216px; top: 384.932px;"></div></span></p>
</td>
<td width="40%" style="width:40.0%;padding:11.25pt 11.25pt 11.25pt 11.25pt">
<p style="margin-top:0;margin-bottom:0;"><strong><span style="font-family:'Google Sans',Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:22.5pt;color:#0f3b5a">Tatiana Travieso Torres</span></strong></p>
<p style="margin-top:0;margin-bottom:0;"><span style="font-family:'Google Sans',Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:13.5pt;color:#0f3b5a">Stagiaire Expert-comptable</span></p>
<p style="margin-top:0;margin-bottom:0;height:31px;"><span style="color:#2f5496"><img width="296" height="31" style="width:3.0833in;height:.3229in" src="https://le-chiffre.be/images_signature/new_10.jpg" ></span><span style="color:#2f5496"></span></p>
<p style="margin-top:0;margin-bottom:0;"><span style="color:#2f5496"><a href="https://le-chiffre.be" target="_blank"><span style="font-family:'Google Sans',Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:13.5pt;color:#0f3b5a;text-decoration:none">www.le-chiffre.be</span></a></span></p>
<p style="margin-top:10px;margin-bottom:10px;"><span style="color:#2f5496"><a style="text-decoration: none;" href="tel:+32491735670" target="_blank"><span style="font-family:'Google Sans',Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:13.5pt;color:#0f3b5a;text-decoration:none">+32 491 73 56 70</span></a></span></p>
<p style="margin-top:10px;margin-bottom:10px;"><span style="color:#2f5496"><a style="text-decoration: none;" href="https://goo.gl/maps/7HKJ2DkUjARxSSbw8" target="_blank"><span style="font-family:'Google Sans',Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-size:13.5pt;color:#0f3b5a;text-decoration:none;">Rue de Goz&#233;e 596,<br> 6110 Montigny-Le-Tilleul</span></a></span></p>
<p style="margin-top:0;margin-bottom:0;"><a href="https://www.facebook.com/lechiffrecomptepourvous" target="_blank"><span style="text-decoration:none"><img border="0" width="27" height="25" style="width:.2812in;height:.2812in" src="https://le-chiffre.be/images_signature/new_17.jpg" ></span></a><a href="https://www.linkedin.com/in/tatiana-travieso-torres-04848712b/" target="_blank"><span style="text-decoration:none"><img border="0" width="26" height="25" style="width:.2708in;height:.2604in" src="https://le-chiffre.be/images_signature/new_18.jpg" ></span></a><span style="color:#2f5496"><img border="0" width="243" height="25" style="width:2.5312in;height:.2604in" src="https://le-chiffre.be/images_signature/new_19.jpg" ></span><span style="color:#2f5496"></span></p>
</td>
<td width="20%" style="width:20.0%;padding:11.25pt 11.25pt 11.25pt 11.25pt">
<p style="margin-top:0;margin-bottom:0;"><span style="color:#2f5496"><img border="0" width="76" height="34" style="width:.7916in;height:.3541in" src="https://le-chiffre.be/images_signature/new_06.jpg" ></span><span style="color:#2f5496"><img border="0" width="76" height="99" style="width:.7916in;height:1.0312in" src="https://le-chiffre.be/images_signature/new_09.jpg" ></span><span style="color:#2f5496"><img border="0" width="76" height="53" style="width:.7916in;height:.552in" src="https://le-chiffre.be/images_signature/new_16.jpg" ></span><span style="color:#2f5496"></span></p>
</td>
</tr>
</tbody>
</table>
</body>
</html>
// Enfold Increase Excerpt Length
add_filter('avf_postgrid_excerpt_length','avia_change_postgrid_excerpt_length', 10, 1);
function avia_change_postgrid_excerpt_length($length)
{
   $length = 120;
   return $length;
}
Practice Queries : 

    1.  Find the names of sailors who have reserved boat number 103

    2.   Find the names of sailors who have never reserved boat number 103

    3.   Find the names of sailors who have reserved a red boat

    4. Find the names and ages of all sailors.

    5. Find all sailors with rating > 7.

    6.  Find the colors of boats reserved by Lubber

    7.  Find the names of sailors who have reserved at least one boat

    8.   Find the names of sailors who have reserved a red or a green boat

    9.  Find the names of sailors who have reserved both a red and a green boat
 
    10.  Find the names of sailors who have reserved a red but not a green boat

    11.  Find the names of sailors who have reserved at least two different boats

    12.   Find the sids of sailors with age over 20 who have not reserved a red boat

    13.   Find the names of sailors who have reserved all boats

    14.  Find the names of sailors who have reserved all boats called Interlake

    15.  Find the sailor name boat id and reservation date for each reservation

    16.  Find sailors who have reserved all red boats

    17.   Find the sids of sailors who have reserved a red boat;

    18. Find the ages of sailors whose name begins and ends with B and has at least 3 characters.

    19.  Find the ages of sailors whose name begins and ends with B and has at least three characters

    20.  Find the sids of all sailors who have reserved red boats but not green boats

    21. Find the average age of all sailors

    22. Find the average age of sailors with a rating of 10

    23. Count the number of sailors

    24.  Count the number of different sailor names

    25.   Find the colors of boats reserved by Albert.
function undefinedVariableExample() {
    echo $undefinedVar; // Causes an error
}
	// Avoid this
function badFunction() {
    global $someGlobalVar;
    // ... do something with $someGlobalVar
}

// Prefer this
function betterFunction($someVar) {
    // ... do something with $someVar
}
$globalVar = 42;

function modifyGlobalVar() {
    // Incorrect: $globalVar here would create a new local variable
    $globalVar = 10;
    echo $globalVar; // Output: 10 (local variable)
}

modifyGlobalVar();
echo $globalVar; // Output: 42 (global variable is not modified)
$variable = 10; // Global variable

function shadowingExample() {
    $variable = 5; // Local variable with the same name
    echo $variable; // Output: 5
}

shadowingExample();
echo $variable; // Output: 10 (global variable is not modified)
$globalVariable = 42; // Global variable

function exampleFunction() {
    global $globalVariable;
    echo $globalVariable;
}

exampleFunction(); // Output: 42
echo $globalVariable; // Output: 42
function exampleFunction() {
    $localVariable = 42; // Local variable
    echo $localVariable;
}

// This will cause an error because $localVariable is not accessible here
echo $localVariable;
<?php
function addNumbers($a, $b) {
    $sum = $a + $b;
    return $sum;
}

// Calling the function and storing the result in a variable
$result = addNumbers(5, 3);

// Displaying the result
echo "The sum is: $result";
?>
<?php
function greetUser($name) {
    echo "Hello, $name!";
}

// Calling the function with a parameter
greetUser("John");
?>
<?php
function sayHello() {
    echo "Hello, World!";
}

// Calling the function
sayHello();
?>
function functionName(parameters) {
    // Function code goes here
}
Count: 1
Count: 2
Count: 3
Count: 4
Count: 5
$counter = 1;

do {
    echo "Count: $counter <br>";
    $counter++;
} while ($counter <= 5);
do {
    // code to be executed
} while (condition);
for ($i = 1; $i <= 5; $i++) {
    if ($i == 3) {
        continue; // skip the rest of the loop for $i equals 3
    }
    echo $i . " ";
}
// Output: 1 2 4 5
for ($i = 1; $i <= 10; $i++) {
    if ($i == 5) {
        break; // exit the loop when $i equals 5
    }
    echo $i . " ";
}
// Output: 1 2 3 4
switch (expression) {
    case value1:
        // code block 1
        break;
    case value2:
        // code block 2
        break;
    case value3:
        // code block 3
        break;
    default:
        // default code block
}
if (condition1) {
    // code block 1
} elseif (condition2) {
    // code block 2
} elseif (condition3) {
    // code block 3
} else {
    // default code block
}
$day = "Monday";

switch ($day) {
    case "Monday":
        echo "It's the start of the week.";
        break;
    case "Friday":
        echo "It's almost the weekend!";
        break;
    default:
        echo "It's a regular day.";
}
switch (expression) {
    case value1:
        // code to be executed if expression matches value1
        break;
    case value2:
        // code to be executed if expression matches value2
        break;
    // additional cases as needed
    default:
        // code to be executed if none of the cases match
}
star

Tue Mar 05 2024 13:08:07 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Tue Mar 05 2024 13:06:45 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Tue Mar 05 2024 13:04:13 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Tue Mar 05 2024 13:03:22 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Tue Mar 05 2024 12:59:56 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Tue Mar 05 2024 12:58:47 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Tue Mar 05 2024 12:02:33 GMT+0000 (Coordinated Universal Time) https://i.imgur.com/tcgiWzN.png

@odesign

star

Tue Mar 05 2024 11:18:10 GMT+0000 (Coordinated Universal Time)

@emjumjunov

star

Tue Mar 05 2024 10:53:03 GMT+0000 (Coordinated Universal Time)

@tudorizer

star

Tue Mar 05 2024 10:45:50 GMT+0000 (Coordinated Universal Time) https://funpay.com/orders/

@Misha

star

Tue Mar 05 2024 09:57:33 GMT+0000 (Coordinated Universal Time)

@leafsummer #python

star

Tue Mar 05 2024 03:53:14 GMT+0000 (Coordinated Universal Time) https://tripleten.com/trainer/web/lesson/3c02a3d8-00d1-44c0-8089-cacaff6dc7b4/task/6309e2aa-df62-4b3a-a4b7-ca5c7f086d3f/

@Marcelluki

star

Tue Mar 05 2024 02:15:15 GMT+0000 (Coordinated Universal Time)

@homunculus #css

star

Mon Mar 04 2024 23:32:00 GMT+0000 (Coordinated Universal Time)

@akshaypunhani #python

star

Mon Mar 04 2024 21:35:34 GMT+0000 (Coordinated Universal Time)

@msaadshahid #java

star

Mon Mar 04 2024 20:43:01 GMT+0000 (Coordinated Universal Time)

@msaadshahid #java

star

Mon Mar 04 2024 20:01:56 GMT+0000 (Coordinated Universal Time) https://js.devexpress.com/jQuery/Demos/WidgetsGallery/Demo/DataGrid/FilterPanel/MaterialBlueLight/

@gerardo0320

star

Mon Mar 04 2024 19:06:38 GMT+0000 (Coordinated Universal Time)

@brandonxedit

star

Mon Mar 04 2024 17:18:22 GMT+0000 (Coordinated Universal Time) https://js.devexpress.com/jQuery/Documentation/Guide/Data_Binding/Data_Layer/

@gerardo0320

star

Mon Mar 04 2024 16:25:08 GMT+0000 (Coordinated Universal Time)

@manhmd

star

Mon Mar 04 2024 14:39:38 GMT+0000 (Coordinated Universal Time)

@MinaTimo

star

Mon Mar 04 2024 13:46:41 GMT+0000 (Coordinated Universal Time) https://i.imgur.com/O3h2YQ5.png

@odesign

star

Mon Mar 04 2024 13:00:24 GMT+0000 (Coordinated Universal Time)

@storetasker

star

Mon Mar 04 2024 12:43:05 GMT+0000 (Coordinated Universal Time)

@KickstartWeb #html

star

Mon Mar 04 2024 11:55:50 GMT+0000 (Coordinated Universal Time)

@omnixima #php

star

Mon Mar 04 2024 09:58:51 GMT+0000 (Coordinated Universal Time) https://www.programiz.com/cpp-programming/online-compiler/

@PRAttAY2003

star

Mon Mar 04 2024 08:09:38 GMT+0000 (Coordinated Universal Time) https://download-directory.github.io/

@yadhu

star

Mon Mar 04 2024 08:08:41 GMT+0000 (Coordinated Universal Time) https://download-directory.github.io/

@yadhu

star

Mon Mar 04 2024 07:23:11 GMT+0000 (Coordinated Universal Time) https://www.programiz.com/cpp-programming/online-compiler/

@PRAttAY2003 #c++

star

Mon Mar 04 2024 05:57:11 GMT+0000 (Coordinated Universal Time)

@dsce

star

Mon Mar 04 2024 02:04:32 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Mon Mar 04 2024 02:01:37 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Mon Mar 04 2024 01:59:15 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Mon Mar 04 2024 01:57:37 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Mon Mar 04 2024 01:55:50 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Mon Mar 04 2024 01:53:34 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Mon Mar 04 2024 01:43:43 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Mon Mar 04 2024 01:42:27 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Mon Mar 04 2024 01:36:00 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Mon Mar 04 2024 01:34:40 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Mon Mar 04 2024 01:21:10 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Mon Mar 04 2024 01:20:06 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Mon Mar 04 2024 01:18:44 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Mon Mar 04 2024 01:14:30 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Mon Mar 04 2024 01:12:37 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Mon Mar 04 2024 01:08:02 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Mon Mar 04 2024 01:06:03 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Mon Mar 04 2024 01:01:56 GMT+0000 (Coordinated Universal Time)

@codewarrior

star

Mon Mar 04 2024 01:00:56 GMT+0000 (Coordinated Universal Time)

@codewarrior

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension