Problem
Want to know if a string contains a specific substring. For example, want to see if an email address contains an @.
Solve
if (Strpos ($_post[' email '), ' @ ') = = = False) { echo ' there is no @ in the e-mail address! ';}
Discuss
PHP5.0 began with the use of the early MySQL database extension functions, but also with the new extended mysqli technology to achieve the information exchange with the MySQL database, php mysqli extension is encapsulated in a class, it is an object-
Cclipwidget provides the ability to record "macros", and the content defined between Init and run of Cclipwidget can be stored in the controller's clip variable and replayed back to any other location.
Cclipwidget encapsulates the basic usage of
This article explains how to query MySQL data through Ajax, and display the returned data in the list to be selected, and then use it in many backend management systems by choosing to eventually add the option to the selection. The operation of this
The following text:
Create a new PHP file captcha_code_file.php
First open Sessionsession_start ();//define the foreground display verification code length & Width $image_width = +; $image _height = +; $characters _on_image = 6; $font = './monofont.
When creating a view of an MVC application, you can directly construct the page view directly using the HTML language, and Yii also provides several helper classes to simplify the view writing. For example, to create a text input field, we can call
The examples in this article describe how PHP implements WebService using SOAP extensions. Share to everyone for your reference, as follows:
Recently in a PHP project docking external interface involves webservice, search engine related articles
Objective
Found a good PHP symmetric encryption algorithm on the Internet, in the PHP syntax environment, there are UrlEncode and Urldecode,base64_encode and Base64_decode with the symmetric algorithm, but these self-band algorithm can not be
function bool Array_multisort (array & $arr [, Mixed $arg = Sort_asc [, Mixed $arg = Sort_regular [, mixed $ ...])
Parameter description: function to sort multiple arrays or multidimensional arrays
The first parameter is an array, each subsequent
Theming is a systematic way to customize the appearance of Web pages in a Web application. By adopting a new theme, the overall appearance of the Web application can be changed immediately and dramatically.
In Yii, each topic is represented by a
The Zii component contains some jquery-based UI components that are defined in the package Zii.widgets.jui, including Cjuiaccordion, Cjuiautocomplete,cjuidatepicker, and so on. This article describes Cjuiaccordion, which shows a accordion component (
Each function returns the current key/value pair in the array and moves the array pointer forward one step
Basic syntax
Array each (array & $array)
After each (), the array pointer stays in the next cell in the array, or when the end of the array
This article describes the PHP common string output method. Share to everyone for reference, specifically as follows:
1. Echo Usage: Use echo to output directly or echo () output, no return value
$string = " bold display text ", Echo $string;//echo
Each PHP variable exists in a variable container called "Zval". A Zval variable container that includes two bytes of extra information in addition to the type and value of the variable. The first is "Is_ref", which is a bool value that identifies
First, the signal
The signal is used to notify the process that an asynchronous event has occurred. The kernel can also send a signal to the process because of an internal event, notifying the process that an event has occurred. Note that the signal
Code first, with PHP scripting language
Output Result:
Array([0] = a[1] = b[2] = C[3] = a[4] = a[5] = b[6] = a[7] = C[8] = b[9] = a)
Load Balancing server, its implementation algorithm is a round-robin weight round, is the back end of the server
PHP SSO Detailed
SSO has three modes: ① cross-subdomain Single sign-on ② fully cross single-point domain login ③ Station Group shared identity authentication
The first mode is simple, just set the domain of the cookie to the root domain of multiple
If a method needs to accept a callback method as a parameter, we can write
Output:
Do STH callback
But we are not sure whether the callback method can be called, so there is a lot of extra work to be done to check whether this callback method
Today, we introduce the content of PHP learning, is the session. So what is the session and how do we use the session?
The meaning of the session is to accomplish one thing, from start to finish some series of actions and messages. For example,
1.cURL Introduction
CURL is a tool that uses URL syntax to transfer files and data, and supports many protocols, such as HTTP, FTP, Telnet, and so on. Best of all, PHP also supports the CURL library. This article describes some of the advanced
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service