The following list explains what is considered to evaluate to false in PHP:
the boolean FALSE itself
the integer 0 (zero)
the float 0.0 (zero)
the empty string, and the string "0"
an array with zero elements
an object with zero member variables (PHP 4 only)
the special type NULL (including unset variables)
SimpleXML objects created from empty tags
Every other value is considered TRUE (including any resource).
$url = $_POST['url'];
$this->params = $url ? $url . 'string' : '';
$this->params = ''
, если передали, то $this->params = $url . 'string'
gulp.task('sass', function() {
return gulp.src('dev/scss/**/*.scss')
.pipe(sass())
.pipe(gulp.dest('dev/css'))
.pipe(browserSync.reload({
stream: true
}))
});
gulp.task('browserSync', function() {
browserSync({
server: {
baseDir: 'dev'
},
})
})
gulp.task('watch', ['browserSync', 'sass'], function (){
gulp.watch('dev/scss/**/*.scss', ['sass']);
// Обновляем браузер при любых изменениях в HTML или JS
gulp.watch('dev/*.html', browserSync.reload);
gulp.watch('dev/js/**/*.js', browserSync.reload);
});
// *
// Index
// *
@import 'index.scss';
// *
// Ico Module
// *
@import 'ico.module.scss';
// *
// Questions Module
// *
@import 'questions.module.scss';
// *
// services Module
// *
@import 'services.module.scss';
// *
// news Module
// *
@import 'news.module.scss';