php array function
array
An array in php is an ordered mapping, a type that associates values to keys, and an array can accept any number of key-value pairs separated by commas.
Introduction to arrays
/*
* Arrays in php can be divided into:
*Index Array: Subscript is a number
*Associated Array: Subscript is string
*Note: Arrays in php don't really distinguish ...
Added by pyc on Fri, 27 Mar 2020 08:57:14 +0200
Summary of problems encountered in docker environment required for k8s deployment
Alibaba cloud's one click deployment script is used for deployment:
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun
Create the required directory:
mkdir -p /etc/docker /data/docker
Then modify the configuration file of docker:
/etc/docker/daemon.json
{
"graph": "/data/docker",
"storage-driver": "overlay2",
"insecure-re ...
Added by zenag on Mon, 23 Mar 2020 11:23:01 +0200
Use guide of tcpdump
Original link: Tcpdump sample tutorial
The main content of this paper is translated from <Tcpdump Examples>.
Tcpdump is a powerful network packet capturing tool. It uses libpcap library to grab network packets, which is found in almost all Linux/Unix. Familiar with the use of tcpdump can help you to analyze and debug network data. Th ...
Added by nigel_belanger on Mon, 09 Mar 2020 09:11:48 +0200
bugkuCTF practice platform
web
1.web2
Check the source code, Firefox f12, viewer.
2. calculator
f12 viewer, find the following line:
<input type="text" class="input" maxlength="1">
Change maxlength to the number of digit ratio results, and you can enter it.
3.web foundation $
This is really the foundation. When get reques ...
Added by ccb on Sun, 08 Mar 2020 05:59:24 +0200
JavaFX implementation calculator
This year's epidemic led to the late start of school. I want to learn and use javafx freely in my self-study at home, so I am going to write a calculator. First, the results are presented, and then the code is analyzed. Here's the source code:
package ff;
import java.util.Collections;
import java.util. ...
Added by asparagus on Sat, 07 Mar 2020 19:30:03 +0200
6.SQL injection and bypass
Article directory
1, GET request blind annotation
1. Introduction to blind note
Introduction to blind notes
Types of blindness
2.GET blind injection based on time
Principle overview
Determine whether there is injection point
Judge database length
Judge database name
3.GET blind annotation based ...
Added by GuiltyGear on Thu, 05 Mar 2020 07:06:47 +0200
Number Summary/Math Number Function from python
Number Number Number
In python's documentation, there are several points to note:
The Math module does not support functions of complex numbers, which are calculated using cmath.So most of them don't support complex numbers.
Under the math module, floating-point numbers are returned unless the label ...
Added by bad_gui on Sun, 01 Mar 2020 03:45:52 +0200
51 Single-chip computer-lcd1602 driver
51 Single-chip computer-lcd1602 driver
This paper describes and summarizes the driver of 51 single-chip computer external lcd1602. The clock circuit of 51 single-chip computer uses 12MHz crystal oscillation, P0 port external pull-up resistance is connected with LCD1602 data port D0-D7, P2.7 and LCD160 ...
Added by phenley on Sat, 22 Feb 2020 04:54:57 +0200
Summary of exercises of functions (Continued)
Last time we said some simple questions, today we will look at some questions about strings.
First question
Analysis:
Prompt the user to enter the password first (String password)
Pass the password into boolean isValid(password) and the return value is true, which is legal; the return value is ...
Added by c_shelswell on Tue, 18 Feb 2020 11:40:57 +0200
5. Air 720sl module Luat development: two common methods of GPIO input and their advantages and disadvantages
Catalog
Click here to view all posts
I. Preface
In the last blog, we talked about initializing GPIO as an output function to drive LED s or other peripherals. In this blog, we will continue to talk about the other remaining function of GPIO - input function
Since it is a smart device, it needs to i ...
Added by HokieTracks on Sun, 16 Feb 2020 08:27:22 +0200